Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Oracle 开发人员,我的数据库有 150 多个具有不同命名的表我想提取所有具有类似名称的表
tbl_1234 tbl_22 tbl_45 tbl_719
命名约定为“表名、下划线、数字”的所有表
请帮我解决这个问题
尝试以下查询:
select table_name from user_tables where regexp_like (table_name, '_[0-9]+$');
如果您有适当的权限,您当然可以使用all_tablesor视图dba_tables
all_tables
dba_tables