I have a table name student and like 35 schemas in my DB. how can i get in which schema the table student exists? (there might be more than one in different schemas).
I've tried through pg_class but I don't know how to get schema name from there.
You could query it from information_schema.tables:
SELECT table_catalog, table_schema
FROM information_schema.tables
WHERE table_name = 'student'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With