I have two tables, one called product_text with a products name, description and category. The other called product_price with the products selling_price and cost_price.
I want to update the product_price table with generic values, for example, the cost_price as 0.01 and the selling_price as 0.01
I need to somehow insert this information into the product_price table for each row that exists in the product_text table.
For example, if I have:
id name description category
1 example example hats
2 example2 example2 socks
in the product_text table, I want to insert:
id selling_price cost_price
1 0.01 0.01
2 0.01 0.01
into the product_price table.
I want to do this for a million items, so need an efficient way of doing it.
Please help
1 Answer