Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in PostgreSQL only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
PostgreSQL
Create UNIQUE KEY
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
pradheepayyanar
New Member
Join Date:
Jun 2006
Posts:
12
#1
Create UNIQUE KEY
Sep 15 '06, 10:22 AM
hello
can anyone tell me how to create a table with 3 columns as UNIQUE KEY
PraDz
somaskarthic
New Member
Join Date:
Aug 2006
Posts:
60
#2
Sep 19 '06, 03:34 AM
hi
Try this
CREATE TABLE test1
(
id int4 NOT NULL,
field1 int4,
field2 int4,
field3 int4,
CONSTRAINT idpkey PRIMARY KEY (id),
CONSTRAINT field1unique1 UNIQUE (field1),
CONSTRAINT fieldunique2 UNIQUE (field2),
CONSTRAINT fieldunique3 UNIQUE (field3)
)
-somaskarthic
Originally posted by
pradheepayyanar
hello
can anyone tell me how to create a table with 3 columns as UNIQUE KEY
PraDz
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment