Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

updating 2 values in a same colum mysql

If we want to swap the values of m->f and m->f
Using the if condition
Update Salary
Set sex = if(sex ='m','f','m');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #updating #values #colum #mysql
ADD COMMENT
Topic
Name
5+8 =