简体   繁体   中英

How can I set a default value for a column in pgAdmin4?

I am working on a project with postgresql as my database, and I'm using pgAdmin4 to interact with my data. I am trying to set a default value for a column but I can't seem to find an option for that, Can anyone help me with that please

You can set a default value for column in pgadmin4,

  1. right click on table on your left side panel of database tree.
  2. click on properties.
  3. click on columns tab.
  4. In this pane on rightmost column you will have a default and you can populate it with values according to your datatype.

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