两种方法:
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);
本文详细介绍了两种SQL数据库备份方法,包括创建备份表并插入数据的步骤,以及直接生成备份表结构并填充原表数据的方法。同时,文章还强调了过滤条件在备份数据中的应用。
2245





