Код: Выделить всё
SELECT exists(select schema_name FROM information_schema.schemata WHERE schema_name = 'foo')
Подробнее здесь: https://stackoverflow.com/questions/183 ... sqlalchemy
Код: Выделить всё
SELECT exists(select schema_name FROM information_schema.schemata WHERE schema_name = 'foo')