sql_查询数据库表名

select * from sysdatabases




--用sql语句查询除某个id外的所有 select * from stu where id not in (select id from stu where id=2)

select * from sysdatabases 
where name not in 
(select name from sysdatabases 
where name='master' or name='model' or name='msdb' or name='tempdb' )

猜你喜欢

转载自blog.csdn.net/milijiangjun/article/details/80922662