MySQL - Update the same column twice
Posted
by uzioriluzan
on Stack Overflow
See other posts from Stack Overflow
or by uzioriluzan
Published on 2010-06-08T11:10:59Z
Indexed on
2010/06/08
11:22 UTC
Read the original article
Hit count: 165
Hello,
I need to update a column in a mysql table. If I do it in two steps as below, is the column "col" updated twice in the disk ?
update table SET col=3*col, col=col+2;
or is it written only once as in :
update table SET col=3*col+2;
Thanks
© Stack Overflow or respective owner