Cloud Spanner — Equivalent Syntax for `SHOW TABLES`?
Asked Answered
L

1

8

It's not clear how to run a query (or conduct an API call) to list all tables. Is this possible with Spanner?

Latrell answered 21/2, 2017 at 5:30 Comment(0)
L
10

Ah, looks like this is documented here: https://cloud.google.com/spanner/docs/information-schema. In particular:

SELECT
  t.table_name
FROM
  information_schema.tables AS t
WHERE
  t.table_catalog = '' and t.table_schema = ''
Latrell answered 21/2, 2017 at 5:40 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.