oletan

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

Select a.name as Columns, b.name as TableName from syscolumns a
left join sysobjects b on a.id = b.id
Where b.type = 'U' and a.name ='Book_Code' order by b.name

b.type='U' (表),  b.type='V' (视图)

posted on 2011-03-03 16:34  Ole  阅读(2991)  评论(0编辑  收藏  举报