简体   繁体   中英

Information of ForeignKey and PrimaryKey in postgresql information_schema

查看从postgres为其信息Schema分配给column的foreignKey和primaryKey名称的最佳方法是什么?

您可以在表pg_constraints中查看所有约束(包括PK和FK)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM