Settings | Sign in | Sign up

There is currently 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.