Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to get a of list schemas in specific database in DB2

Tags:

database

db2

how to get a of list schemas in specific database in DB2. I am trying to get list of specific schemas in particular database

like image 857
adonthula Avatar asked May 28 '16 08:05

adonthula


1 Answers

Try this:

select schemaname from syscat.schemata

The catalog view SYSCAT.SCHEMATA holds the schema information. Here is the overview of all DB2 LUW catalog views in case you need other information as well.

like image 122
data_henrik Avatar answered Nov 01 '22 11:11

data_henrik