我是在同一用户下,要备份一张表的数据
首先,创建表结构
create table transation_his_bak as select * from adjust_power_transaction_his where 1=2
其次,拷贝表的数据
insert into transation_his_bak select * from adjust_power_transaction_his
验证下,成功!!
不同用户下,在表名前加上用户名即可
我是在同一用户下,要备份一张表的数据
首先,创建表结构
create table transation_his_bak as select * from adjust_power_transaction_his where 1=2
其次,拷贝表的数据
insert into transation_his_bak select * from adjust_power_transaction_his
验证下,成功!!
不同用户下,在表名前加上用户名即可