0%
根据源表创建备份表并且取源表的数据插入
1
| create table backupsTBL as select * from sourceTBL;
|
如果备份表已经是存在的,从源表中拿到取数插入
1 2 3 4
| insert into backupsTBL select * from sourceTBL;
insert into backupsTBL(name,age) select name,age from sourceTBL;
|
同一张表中,将某个字段A的值赋给字段B
1
| update table_name set B = A;
|