用like语句查询。
SQL Server语法如下(如查询包含spt的表)
select name from sys.objects where type='U' and name like '%spt%';
结果:
Oracle语法如下(如查询包含test的表)
select table_name from user_tables where table_name like '%TEST%';
结果:
注意:Oracle中,表名处的字母一定要大写。
oracle:select * from user_tables where table_name like '%S%'; 'S'为包含的关键字