已建有一个表BORROW,可以通过复制而再建一个表BORROW_SAVE,表结构和BORROW相同吗?

解决方案 »

  1.   

    select * into newtable where 1<>1
      

  2.   

    select * into borrow_save from borrow where 1=2
      

  3.   

    select * into BORROW_SAVE from BORROW where 1=2  --复制表结构select * into BORROW_SAVE from BORROW --复制表结构以及表数据
      

  4.   

    更正
    1:select * into newtable  from oldtable where 1 <>1
    2:可以通过生成脚本,然后修改下表名后执行
      

  5.   


    select * into newtable where 条件不成立
    复制表架构,不填充数据...
      

  6.   


    select * into newtable from 原表 where 条件不成立
    复制表架构,不填充数据...
      

  7.   

    BORROW有两个主键,用各位所说的方法,生成的表BORROW_SAVE没有主键,