Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/oracle/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Oracle 提取名称为数字的表_Oracle_Oracle11g_Oracle Sqldeveloper_Database Administration - Fatal编程技术网

Oracle 提取名称为数字的表

Oracle 提取名称为数字的表,oracle,oracle11g,oracle-sqldeveloper,database-administration,Oracle,Oracle11g,Oracle Sqldeveloper,Database Administration,我使用的是Oracle developer,我的数据库有150多个具有不同名称的表 我想提取所有名称如下的表 待定1234 tbl_22 待定45 tbl_719 命名约定类似于“表名、下划线、数字”的所有表 请在这方面帮助我尝试以下查询: select table_name from user_tables where regexp_like (table_name, '_[0-9]+$'); 当然,如果您有适当的权限,您可以使用all_tables或dba_tables视图

我使用的是Oracle developer,我的数据库有150多个具有不同名称的表 我想提取所有名称如下的表

待定1234 tbl_22 待定45 tbl_719

命名约定类似于“表名、下划线、数字”的所有表

请在这方面帮助我

尝试以下查询:

select table_name from user_tables where regexp_like (table_name, '_[0-9]+$');
当然,如果您有适当的权限,您可以使用
all_tables
dba_tables
视图