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

2

7

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 ?

Dracaena answered 11/4, 2014 at 8:38 Comment(0)
D
13

I finally find this query

select tables.name from tables where tables.system=false ;
Dracaena answered 11/4, 2014 at 8:57 Comment(0)
S
12

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.

Swinge answered 25/10, 2014 at 13:40 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.