📜  插入并初始化 SQL 列,其值依赖于另一列数据 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:57.699000             🧑  作者: Mango

代码示例1
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;