Settings
|
Sign in
|
Sign up
Bar
Post
Home
>
Bar PostgreSQL
>
View post
Reply the post
|
View author only
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:
No conversion
Mainland
Taiwan
Hong Kong
Singapore
Reply the post
Content:
User:
You are currently anonymous.
Captcha:
Unclear? Try another one.