How to list schemas of a specific database in Informix using SQL?
问题 What is the query to get a list of schemas names in a specific database in Informix? 回答1: A schema belongs to a user. You can list all available users from the sysusers system catalog : SELECT username FROM "informix".sysusers; Since only DBA s and Resource privilieges allow a user to issue a CREATE SCHEMA statement, we could restrict the query like : SELECT username FROM "informix".sysusers WHERE usertype IN ('D', 'R'); Another solution is to list only users that actually have created tables