I would like find schema in which a table exists in Informix database.
I know that we can use below query. But that searches only with a schema.
select tabname from "informix".systables where tabid > 99 ;
informix
I would like find schema in which a table exists in Informix database.
I know that we can use below query. But that searches only with a schema.
select tabname from "informix".systables where tabid > 99 ;
Best Answer
The chances are that you can find what you want by running a query against
sysmaster:'informix'.systabnames
– which is a table in thesysmaster
database.Sample output (rather carefully selected rows):
The 'table' such as
" 105_38"
are not tables but indexes. There may be other tables or views insysmaster
which satisfy your question better — but it is likely that queryingsysmaster
is the way to get the information you're after.