There is a table with the goods. id, title, price
. A lot of data, and you need to write a script that will increase the price as a percentage.
For example: Goods with a price of 1000. It is necessary to increase by 10%. Accordingly, it is necessary that this all work on the MySQL side.
I did this: I get the data, then I drive them in a cycle, increasing the price and write to the database. Not very correct. And how to create a query that will increase all values on the MySQL side?