select * into B from A 这样就能备份了。前提是B表不能预先存在。参考技术AINSERT INTO B select * from A 要求 字段相同参考技术B赞成2楼的语句 虽然简洁了点
sql 备份表的三重奏
CREATE OR REPLACE TRIGGER copy_loaddata
After INSERT
ON emp
FOR EACH ROW
DECLARE
-- variable declarations
BEGIN
Insert into emp_copy values (:new.EMPNO,:new.ename,:new.v3,:new.v4);
DBMS_OUTPUT.PUT_LINE('Record successfully inserted into emp_backup table');
EXCEPTION
WHEN no_data_found then
DBMS_OUTPUT.PUT_LINE('ERROR');
END;