Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
行が mysql クエリで返された回数を追跡したいと思います。選択された行データをインクリメントする方法はありますか? 2 つのクエリを実行するのではなく、これを 1 回のショットで実行したいと考えています。
大ざっぱな考え方なので、
SELECT * FROM data WHERE text in($search) & UPDATE hits=hits+1
そんな感じ。