|
A consulta abaixo encontra tabelas cujos nomes terminam com sufixo específico, por exemplo, tabelas com nomes que terminam com 'REGION'.
Query below finds tables which names end with specific sufix, e.g. tables with names ending with 'REGION'.
Consulta - Query
SELECT T.TABSCHEMA AS SCHEMA_NAME
, T.TABNAME AS TABLE_NAME
FROM SYSCAT.TABLES T
WHERE T.TYPE ='T'
AND T.TABNAME LIKE'%REGION'
ORDER BY SCHEMA_NAME
, TABLE_NAME;
|
Colunas
- schema_name - o nome da tabela de esquema foi encontrado em
- table_name - nome da mesa encontrada
Linhas
- Uma linha representa uma mesa
- Escopo das linhas: todas as tabelas encontradas
- Ordenado por nome de tabela, nome de esquema
|
Columns
- schema_name - name of schema table was found in
- table_name - name of found table
Rows
- One row represents a table
- Scope of rows: all found tables
- Ordered by table name, schema name
|
Resultado - Sample results
Lista de tabelas que terminam em 'REGION'.
List of tables ending with 'REGION'.

Copyright © Dataedo.
|