![]() |
How should I do a multiple update ?
Hi,
I would like to update FIVE records a once. I usually do one at a time like this: PHP Code:
The 5 adverts have ids PHP Code:
Do I insert a series of AND's ? Thanks. . |
Code:
WHERE advert_id in (id1,id2,...) ? |
Never heard of that :eek:
So I write: PHP Code:
If not - how should it be done ? Thanks. . |
Quote:
Example: Code:
update test set c = c+1 where b in (1,2) |
| All times are GMT +1. The time now is 08:42 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.