读数据库名:
select name,dbid from sysdatabases
读表名:
select name,id from sysobjects where xtype ='U'
读字段名:
select info from sysobjects where name='表名' and xtype ='U'
MSSQL基础,老调重弹。
最新推荐文章于 2024-11-04 16:35:39 发布
读数据库名:
select name,dbid from sysdatabases
读表名:
select name,id from sysobjects where xtype ='U'
读字段名:
select info from sysobjects where name='表名' and xtype ='U'