select top 0 * into tab_new from  tab_old 

select * into tab_new from   tab_old where 1=2

解决方案 »

  1.   

    select * into newtb from oldtb 带数据.
    select * into newtb from oldtb where 1 = 2 不带数据.
      

  2.   


    复制表结构和数据:
    select * into 目的表 from 源表只复制表结构:
    select top 0 * into 目的表 from 源表 
      

  3.   

    我的意思是为什么
    create   table   tab_new   like   tab_old 
    不行,原因?
      

  4.   

    create       table       tab_new       like       tab_old  
    ------------------------
    只能说语法四不像!!!
      

  5.   

    select * into newtb from oldtb 带数据.
    select * into newtb from oldtb where 1 = 2 不带数据.
    好象复制不了主键 默认值什么的
      

  6.   

    select    *   into   tab_new   from     tab_old