【问题标题】:How to Show Tables using Where clause in H2 SQL?如何在 H2 SQL 中使用 Where 子句显示表?
【发布时间】:2019-01-10 16:18:48
【问题描述】:

我正在使用此查询来显示 h2 中架构中的表,但它不起作用
enter image description here

【问题讨论】:

标签: sql h2


【解决方案1】:

SHOW 命令没有实现复杂的过滤条件。但是,您可以运行一个简单的SELECT 来获取您的表格:

select table_name
from information_schema.tables
where table_schema = 'PUBLIC' -- your schema
  and table_type = 'TABLE'
  and table_name like '%RU%' -- your custom filtering condition

【讨论】:

    猜你喜欢
    • 2020-08-20
    • 1970-01-01
    • 2022-01-02
    • 1970-01-01
    • 1970-01-01
    • 2013-05-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多