1)SQL获取所有的表名
select Name from MsysObjects where type=1 and Flags=0
运行结果
2)SQL获取某张表所有的字段名(只有字段名不含记录)
select * from students where false