phpmyadmin - Update prices in in MySQL database -
- i have libreoffice calc file 2 columns:
id | new_price - my opencart database table called
product, has these relevant columns:id | price
i need update price in database based on id in calc file value in new_price.
i have phpmyadmin available, not sure how this.
could please guide me how achieve this?
load file new table using import function in phpmyadmin, let's called new_table , execute:
update product set price = ( select new_price new_table new_table.id = product.product_id ) product.product_id in ( select id new_table )
Comments
Post a Comment