Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

update one column from another column in same table

select * from stuff

update stuff
set TYPE1 = TYPE2
where TYPE1 is null;

update stuff
set TYPE1 = TYPE2
where TYPE1 ='Blank';

select * from stuff
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #update #column #column #table
ADD COMMENT
Topic
Name
4+8 =