Janet,
Quote:
I also tried this:
create table borrower(user_id int ,
issn varchar(15),
primary key user_id, issn);
ERROR: parser: parse error at or near "user_id" at character 68 |
This is, I think, what you want. However, you have a syntax error in your
primary key constraint declaration:
CONSTRAINT borrower_pk PRIMARY KEY (user_id, issn)
Also, both user_id and issn should be declared NOT NULL.
Overally, I suggest picking up an "introduction to SQL book", such as "SQL
Queries for Mere Mortals."
--
-Josh Berkus
Aglio Database Solutions
San Francisco
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo (AT) postgresql (DOT) org)