【发布时间】:2020-12-19 02:40:47
【问题描述】:
以下可用于分别显示当前模式或指定模式中的表:
show tables;
show tables in my_schema;
这记录在这里: https://docs.databricks.com/spark/latest/spark-sql/language-manual/show-tables.html
有没有办法显示所有数据库中的所有表?
Databricks/Spark 中是否有元数据表(类似于 Oracle 中的 all_ 或 dba_ 表或 MySql 中的 information_schema)?有没有办法对 Databricks 中的数据库对象进行更具体的查询?像这样的:
select * from i_dont_know_what where lower(table_name) like '%gold%' and schema = 'myschema';
【问题讨论】: