select  *  from  sysobjects  where  object_name(parent_obj)='表名' 這是列名的值,表名為sysobjects

解决方案 »

  1.   

    select  *  from  sysobjects  where  object_name(parent_obj)='表名' 
    因为object_name这里要求是字符串,并不是要求对象。
      

  2.   

    同意
    --字符的話要加,數字可以不加
    declare @t table(num varchar(100))
    insert @t select 123
    insert @t select '123'
    insert @t select 'abc'
    select * from @t
    /*
    num                                                                                                  
    ---------------------------------------------------------------------------------------------------- 
    123
    123
    abc*/