📜  如何在sql代码示例中获取所有表

📅  最后修改于: 2022-03-11 15:04:52.384000             🧑  作者: Mango

代码示例4
SELECT TABLE_NAME
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_CATALOG=db_name() 
and TABLE_NAME like'%table_name%'--to check particular table