两种方法:
1.
2.
1.
//先生成备份表的表结构
create table bmpforest.E_PKG_ATPCFG_BAC as select * from bmpforest.e_pkg_atpcfg where 1=2
//在想备份表中插入数据
insert into E_PKG_ATPCFG_BAC select * from E_PKG_ATPCFG;
2.
//直接生成备份表的表结构之后,填充原表的数据,并且添加到备份表中的数据可使用过滤条件进行过滤
create table t_permission_bak as (select * from t_permission tp where tp.permission_id >4);