Primary & Foreign Keys in pgAdmin

后端 未结 5 1734
悲&欢浪女
悲&欢浪女 2021-01-30 20:12

I was wondering can some give me an explanation on how to assign primary and foreign keys in pgAdmin?

I can\'t find any information online.

For example...I\'ve g

5条回答
  •  耶瑟儿~
    2021-01-30 20:43

    In Pgadmin3,

    1. Go to table which you want to add the PK or FK and right click and choose properties.

    2. Go to constraints tab.

    3. Choose Primary Key or Foreign Key in drop down list which beside of Add button.

    4. And than click on add button.

    5. Go to columns tab.

    6. Choose the column name in drop down list ,which you want to add .

    7. Click add button.

    8. Click Ok button.

      Hope it will helpful for you !

提交回复
热议问题