How to have the list of table in a monetdb database?

大城市里の小女人 提交于 2019-12-06 04:39:02

问题


In postgresql, one can have all tables names by running the following query

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

Is there something similar in monetdb to have the list of tables ?


回答1:


I finally find this query

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



回答2:


If you are using mclient, in the command line you could simply use the command "\d" to list all the tables in the current database.

sql> \d

TABLE  sys.table1 

TABLE  sys.table2

TABLE  sys.table3

Additionally, use the command "\d tablename" to view the metadata of a table - equivalent to "show create table" in mysql.



来源:https://stackoverflow.com/questions/23007549/how-to-have-the-list-of-table-in-a-monetdb-database

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!