Ash*_*nko 400
这个怎么样
UPDATE table SET columnB = columnA;
Run Code Online (Sandbox Code Playgroud)
这将更新每一行.
小智 77
UPDATE table_name SET
destination_column_name=orig_column_name
WHERE condition_if_necessary
Run Code Online (Sandbox Code Playgroud)
小智 5
如果未启用安全模式,这将更新该列中的所有行。
UPDATE table SET columnB = columnA;
如果启用了安全模式,那么您将需要使用 where 子句。我使用主键大于0基本上都会更新
UPDATE table SET columnB = columnA where table.column>0;
| 归档时间: |
|
| 查看次数: |
221655 次 |
| 最近记录: |