SHOW TABLES文

構文

show_tables_statement ::=
    SHOW [AS JSON] (TABLES | TABLE table_name)

セマンティクス

show tables文は、システムに存在する表のリストを提供します。特定の表の詳細を把握する必要がある場合は、show table文を使用できます。指定された表が存在しない場合、この文は失敗します。

例5-2 Show Tables

次の文は、システム内のすべての表をリストします。

SHOW TABLES;
 
tables
  SYS$IndexStatsLease
  SYS$PartitionStatsLease
  SYS$SGAttributesTable
  SYS$StreamRequest
  SYS$StreamResponse
  SYS$TableStatsIndex
  SYS$TableStatsPartition
  Users2
  users

例5-3 Show Tables

次の文は、システム内のすべての表をJSON形式でリストします。

SHOW AS JSON TABLES;
 
{"tables" : [
    "SYS$IndexStatsLease",
    "SYS$PartitionStatsLease",
    "SYS$SGAttributesTable",
    "SYS$StreamRequest",
    "SYS$StreamResponse",
    "SYS$TableStatsIndex",
    "SYS$TableStatsPartition",
    "Users2",
    "users"
]}

例5-4 Show Tables

次の文は、システム内の特定の表をリストします。

SHOW TABLE users;
 
tableHierarchy
  users