Returns an array containing the names of all tables in the given database.
The function returns the following error codes:
E_ALLOC
if memory allocation failed.E_BOUNDS
if more tables are returned than expected.E_DB_NO_ROWS
if no rows are returned.E_DB_PREPARE
if statement preparation failed.E_DB_TYPE
if returned columns are unexpected.Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(db_type), | intent(inout) | :: | db |
Database type. |
||
character(len=SQL_TABLE_NAME_LEN), | intent(out), | allocatable | :: | tables(:) |
Array of tables. |