时间:2025-02-19 04:01:30
使用SQL查询所有数据库名和表名及字段名
SQLServer中查询所有数据库名和表名
1.查询所有数据库。select * from sysdatabases;
2.查询当前数据库中所有表名。select * from sysobjects where xtype='U';
3.查询指定表中的所有字段名。select name from syscolumns where id=Object_Id('table_name');
科技之家 广州小漏斗信息技术有限公司 版权所有 提供支持 粤ICP备20006251号