Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

if mysql update

mysql> update updateIfConditionDemo set UserAge =if(UserAge =23,26,UserAge);
Query OK, 4 rows affected (0.20 sec)
Rows matched: 5 Changed: 4 Warnings: 0
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #mysql #update
ADD COMMENT
Topic
Name
6+9 =