不太明白你的意思select * from syscolumns where id=object_id('表名')

解决方案 »

  1.   

    select* from sysobjects where xtype='u'
      

  2.   

    try:
    select * from sysobjects a,syscolumns b where a.id=b.id and a.xtype='u' and b.name='name'
      

  3.   

    if exist (select * from sysobjects a,syscolumns b where a.id=b.id and a.xtype='u' and b.name='name')
    begin
    print '自己的'
    end--------------------------------------
    看见了么,
    那支蛾子,
    正飞向太阳,
    那就是我!
    --------------------------------------