select * 
into table cydata
from cbox

解决方案 »

  1.   

    select * into cydata from cbox
      

  2.   

    创建视图
    create view cydata as  select * from cbox
      

  3.   

    select * into cydata from cbox
      

  4.   

    exec sp_dboption 'yourDBname','select into/bulkcopy','true'
      

  5.   

    if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[nc_lost]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
    drop table [dbo].[nc_lost]
    GOCREATE TABLE [dbo].[nc_lost] (
    [service_id] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
    [access_number] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
    [favourmenu_name] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
    [fee] [int] NULL ,
    [state] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL 
    ) ON [PRIMARY]
    GO
      

  6.   

    如果你只是想拷贝表结构的话,介绍你最简单的办法
      select * 
       into table cydata
      from cbox
      where 1>1意思大家都明白了!...
      

  7.   

    To  Suncanoe(小舟) 和 hjhing(winding)兄:
         你们都多了个table啊!
         已经要严格要求自己!
       select * into  cydata from cbox  where 1>1
       select * into cydata from cbox
       其实两个是一样的吗!
      

  8.   

    select * into 新表 from 旧表 where 条件
      

  9.   

    select * into  cydata from cbox  where 1>1
       select * into cydata from cbox
    这两个不一样,第一个拷贝是表结构,第二个还包括数据