如何在monetdb数据库中获取表的列表?

时间:2014-04-11 08:38:54

标签: monetdb

在postgresql中,可以通过运行以下查询来获得所有表名称

SELECT table_name FROM information_schema.tables WHERE table_schema='public';

monetdb中是否有类似的表格列表?

2 个答案:

答案 0 :(得分:11)

我终于找到了这个查询

select tables.name from tables where tables.system=false ;

答案 1 :(得分:8)

如果您使用的是mclient,则可以在命令行中使用命令“\ d”列出当前数据库中的所有表。

sql> \d

TABLE  sys.table1 

TABLE  sys.table2

TABLE  sys.table3

此外,使用命令“\ d tablename”查看表的元数据 - 相当于mysql中的“show create table”。