Settings | Sign in | Sign up

The author has 1 post.

【PSQL】PSQL中自动编号

Floor 1 巨大八爪鱼 8/13/12 9:31
只需要把该字段的类型设为serial就行了。
如:
CREATE TABLE ser
(
  id serial NOT NULL,
  txt text,
  CONSTRAINT ser_pkey PRIMARY KEY (id )
)

Content converter:

Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.