Creating relationship links in PostgreSQL via pgAdmin

Deadly 提交于 2019-12-22 10:33:03

问题


I created a databse with four tables in pgAdmin. It was coded in PostgreSQL.

I was wondering how do you create replationship links in pgAdmin? I've searched google and youtube, but can't seem to find a tutorial on it.

If someone can explain how to do this, i'll be grateful.

Here's a picture of how I designed my datase to relate:


回答1:


You can find it via right-click on the table --> Properties --> Constraints --> Foreign Key (Add).

Then you can add the foreign keys as needed. There is (yet) no way to do it graphically.



来源:https://stackoverflow.com/questions/9793536/creating-relationship-links-in-postgresql-via-pgadmin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!