getCollectionNames() - View collection names for a schema command

Returns the names of all JSON collections in a Db2 database.

Syntax diagram

Read syntax diagramSkip visual syntax diagramdb.getCollectionNames( )

Command parameters

None.

Example

View all the collection names:
db.getCollectionNames()
Sample output is as follows:
[media, books, booksnest]