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.
price というフィールドを含む products というテーブルがあり、単純にすべての製品の価格を 2 倍にしたいと考えています。PHP myAdmin 内で実行できる SQL ステートメントを教えてください。
update products set price = price * 2;
それは簡単です
UPDATE products SET price = price*2;
UPDATE products SET price = price + price;
乗算を使いたくなかった :P