I have a product table with over 1K of data there are loads of fields and two of them are item_price and isonsale and what I want to do is select all and add %20 of the current price and select all and make isonsale =1; can some tell me the command for this pls.
Try the following but backup your data before running this query UPDATE table_name SET item_price = item_price + (item_price * .2), isonsale = 1 Code (markup):