Problems de Serial data type in DBeaver & PostgreSQL

依然范特西╮ 提交于 2019-12-11 00:37:54

问题


I´m a new user (noob) of Dbeaver (community edition) and PostgreSQL, and I was having big trouble in defining an auto-incremented Primary Key in any table, so I would like to know how to be able to define an auto-incremented primary key using DBeaver, answers must no include these trials:

  1. Defining the primary key as serial (DBeaver will change it automatically to int2-4-8 even when defining the Primary Key as not null).
  2. Defining a new sequence in DBeaver (the best way to define a new sequence is throw pgAdmin4 and you may not be that successful to assign it to the table's Primary Key if your a noob just like I´m either in DBeaver or in pgAdmin4).

来源:https://stackoverflow.com/questions/47752793/problems-de-serial-data-type-in-dbeaver-postgresql

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