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.
我有一个名为 products 的表,其中包含一个名为 price 的字段,我只想将每个产品的价格翻倍。请你帮我看看我可以在 PHP myAdmin 中运行的 SQL 语句。
update products set price = price * 2;
这很容易
UPDATE products SET price = price*2;
UPDATE products SET price = price + price;
不想使用乘法:P