Tag Archives: update

Run Update SQL query with if clause

Description: Running an SQL script that performs a update depending on some given conditions. Solution: SQL query can take if clauses in the shape of cases: UPDATE table SET name = case WHEN id = 1 then ‘John’ ELSE null … Continue reading

Posted in SQL | Tagged , | Leave a comment