Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql update even / odd rows

update mytable set picture = replace(picture, '.png', '-Small.png') where id % 2 = 0;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mysql #update #odd #rows
ADD COMMENT
Topic
Name
3+1 =