摘要: select a.TABLE_NAME as "TableName", case when (select count(*) from user_views v where v.VIEW_NAME =a.TABLE_NAME )>0 then 'V' else 'U'end ... 阅读全文
posted @ 2014-07-11 17:01 小 天 阅读(2571) 评论(0) 推荐(0)
摘要: SQLServer 2005SELECT d.name N'TableName', d.xtype N'TableType', a.colorder N'ColumnIndex', a.name N'ColumnName', (case when COLUMNPROPE... 阅读全文
posted @ 2014-07-11 16:59 小 天 阅读(1064) 评论(0) 推荐(1)