【问题标题】:Extract Table(s) having name in numbers提取名称为数字的表
【发布时间】:2013-08-01 22:18:27
【问题描述】:

我正在使用 Oracle 开发人员,我的数据库有 150 多个具有不同命名的表 我想提取所有具有类似

名称的表

tbl_1234 tbl_22 tbl_45 tbl_719

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

请帮我解决这个问题

【问题讨论】:

    标签: oracle oracle11g oracle-sqldeveloper database-administration


    【解决方案1】:

    尝试以下查询:

    select table_name from user_tables where regexp_like (table_name, '_[0-9]+$');
    

    当然,如果您有适当的权限,您可以使用 all_tablesdba_tables 视图

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-07-23
      • 1970-01-01
      • 1970-01-01
      • 2013-06-18
      • 2021-11-19
      • 1970-01-01
      • 2020-03-11
      相关资源
      最近更新 更多