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.
1000 エントリを持つ列の 1 つとして age を持つテーブル Person があります。各人の年齢を 2 倍して更新したいと思います。
1 つの SQL クエリで可能でしょうか? MySQL データベースを使用しています。
はい、これは次のように可能です:
UPDATE Persons p SET p.Age = p.Age * 2;