I want to retrieve these informations from PostgreSQL for one table name :
For each foreign key, the name of the field corresponding to the fk, and the name of the table witch is referenced by.
Can I do it with sql query ?
Thanks for help
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about CollectivesStack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
Explore Stack InternalI want to retrieve these informations from PostgreSQL for one table name :
For each foreign key, the name of the field corresponding to the fk, and the name of the table witch is referenced by.
Can I do it with sql query ?
Thanks for help
SELECT version(), the SQL used to create the table(s), and the SQL used to query theinformation_schema.