如果记录没有更改,SQL 会更新记录吗?
例如,替换是否更有效
UPDATE TABLE myTable
Set Col1 = ISNULL(Col1,'')
...
Set Col100 = ISNULL(Col30,'')
和
UPDATE TABLE myTable
Set Col1 = ISNULL(Col1,'')
...
Set Col100 = ISNULL(Col30,'')
WHERE
Col1 IS NULL OR
...
Col30 IS NULL
如果记录没有更改,SQL 会更新记录吗?
例如,替换是否更有效
UPDATE TABLE myTable
Set Col1 = ISNULL(Col1,'')
...
Set Col100 = ISNULL(Col30,'')
和
UPDATE TABLE myTable
Set Col1 = ISNULL(Col1,'')
...
Set Col100 = ISNULL(Col30,'')
WHERE
Col1 IS NULL OR
...
Col30 IS NULL