Rod,
Your detailed description and examples saved me a lot of time. Thanks for taking the time to post that info here. Being a newbie everything takes a lot of time.
cheers. SB
Rod,
Your detailed description and examples saved me a lot of time. Thanks for taking the time to post that info here. Being a newbie everything takes a lot of time.
cheers. SB
Hi Rod,
I was reffered to this thread from one I posted just now. Here's what I wrote:
So, I just need to work out what SQL I need to run in order to do this.I want to increase a lot of my prices by £1, but am loathe to go to every single one and add £1 to each price.
Also, I only want to increase the price of products that are currently below £6.
I can imagine there's an easy bit of SQL code to use, but I'm not to familiar with it myself.
Would something like this work?
Not entirely sure that's correct, but that's just using my newly found (albeit vague) knowledge of programming (currently in the process of Python for a different project)Code:update `zen_products` increase `products_price` + 1.00 WHERE `products_price` < 6.00
Any help would be appreciated
Cheers
For PHP it is more like:
WARNING: This is just off the top of my head. Don't be too surprised if its not correct. I can never remember when/where quotes are needed or whether they need to be single or double.Code:update `zen_products` set `products_price` = `products_price` + 1.00 WHERE `products_price` < 6.00 ;
Cheers
Rod
Last edited by RodG; 8 Aug 2011 at 03:36 PM.