2006年11月13日

Sql Server 關於獲取數據庫名,表名及字段名的幾個語句。

摘要: 所有的庫名select [name] from master.dbo.sysdatabases where dbid>6 當前庫下的所有表名use hischeckselect[name]from sysobjects where xtype='U' 當前表下的所有字段名select column_name from information_schema.columns where t... 阅读全文

posted @ 2006-11-13 08:51 ★金★ 阅读(520) 评论(0) 推荐(0) 编辑

导航