MYSQL CHEAT-SHEET
To change a value based on a condition we can use the format as below;
UPDATE `tableName`
SET
`col_name_one` = 'new_value',
`col_name_two` = 8
WHERE `col_name_three` = 2020110501;
Heisenberg - Digital Alchemist, Software Architect, Automation Specialist and Mechanical Engineer.
UPDATE `tableName`
SET
`col_name_one` = 'new_value',
`col_name_two` = 8
WHERE `col_name_three` = 2020110501;
No comments:
Post a Comment
Note: only a member of this blog may post a comment.