Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在一个表中有 10 列,我想将 A 列中的值复制到 E 列,其中两者都是位列。完全不应对 A 列进行任何更改
使用不带 where 子句的 update 语句复制ColumnAtoColumnB
ColumnA
ColumnB
Update YourTable set ColumnE = ColumnA;
您可能会看到:更新语句 SQL
UPDATE table set columnE = columnA
您也可以提供 WHERE 子句
UPDATE table set columnE = columnA Where SomeCondition