你可以由系统表取字段名,用动态SQL,或复制粘贴

解决方案 »

  1.   

    declare @s nvarchar(400)
    select @s=isnull(@s+',','')+quotename(Name) from syscolumns where ID=object_id('table') order by colid
    exec('select '+@s+' from  table')
      

  2.   

    declare @s nvarchar(400)
    select @s=isnull(@s+',','')+quotename(Name) from syscolumns where ID=object_id('table') and Name!='ID'order by colid
    exec('select '+@s+' from  table')
      

  3.   

    分析器,F8左侧找到对应的库与表,右击编写对象脚本,查增删改都有,连Create,drop都有。