Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

Insert and initialize a SQL column with value dependent on another column data

UPDATE table
SET col = new_value
WHERE col = old_value
AND other_col = some_other_value;

UPDATE table
SET col = new_value
WHERE col = old_value
OR other_col = some_other_value;
Source by chartio.com #
 
PREVIOUS NEXT
Tagged: #Insert #initialize #SQL #column #dependent #column #data
ADD COMMENT
Topic
Name
4+8 =