Answers for "query to update data in sql"

SQL
0

how to update date value in sql

UPDATE TABLE
   SET EndDate = CAST('2009-05-25' AS DATETIME)
 WHERE Id = 1
Posted by: Guest on March-09-2020
6

sql update record

SQL> UPDATE CUSTOMERS
SET ADDRESS = 'Pune'
WHERE ID = 6;
Posted by: Guest on June-04-2020
0

sql update

/*Swap f to m and m to f*/
UPDATE salary
SET
    sex = CASE sex
        WHEN 'm' THEN 'f'
        ELSE 'm'
    END;
Posted by: Guest on February-07-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language