CodingForums.com
>
:: Server side development
>
PHP
> updating multiple non sequential records
PDA
View Full Version :
updating multiple non sequential records
robojob
07-23-2006, 01:25 PM
can anyone help me with a way to update a set of records that could potentially be non sequential...
marek_mar
07-23-2006, 02:34 PM
You could try and use the IN() function.
UPDATE table SET field = 'value' WHERE primary_key IN(1, 32, 345, 3, 4);
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.