SQL2000是SELECT *INTO Persons_backup FROM Persons,oracle怎样备份table的?

解决方案 »

  1.   

    create table Persons_backup  as select * from Persons
      

  2.   

    -- 好好活着,就是为了备份,好好备份就是为了活着!
    create table tb_bak as select * from tb;
      

  3.   


    可以用逻辑导出,也可以用另一张表:
    逻辑导出:
    exp david/david file=exp_tianle_090101.dmp log=exp_tianle_090101.log tables=(tianle); ­imp david/david file=exp_tianle_090101.dmp log=imp_tianle_090101.log tables=(tianle); ­
    ORACLE 数据库逻辑备份 简单 EXP/IMP
    http://blog.csdn.net/tianlesoftware/archive/2009/10/24/4718366.aspx
    另一种方法就是上面几楼说的,放到另一张表里。
    ------------------------------------------------------------------------------ 
    Blog: http://blog.csdn.net/tianlesoftware 
    网上资源: http://tianlesoftware.download.csdn.net 
    相关视频:http://blog.csdn.net/tianlesoftware/archive/2009/11/27/4886500.aspx 
    DBA1 群:62697716(满); DBA2 群:62697977
      

  4.   

    对应这种"备份", oracle中使用:
    create table persons_backup as select * from persons;
      

  5.   

    create table 要建立的表 as
    select * from 查询的表