[SQL] Add Constraint

2000-10-25 Thread Sivagami .
Hi all,   I am a newbie to Postgresql, but I am familiar with SQL. I am trying to add a constraint to my table using the ALTER TABLE command. The command goes like this :   ALTER TABLE USER_SIGNUP ADD CONSTRAINTP_USER_SIGNUP_USER_ID PRIMARY KEY(user_id);   But it is returning the error ERROR

[SQL] .

2000-10-27 Thread Sivagami .
Hi all,     I tried:SELECT * FROM DB1.MY_TABLE;from DB2 and it did not like the syntax.  I assume that you cannot select across database/schemas.Is this correct? Shiva

[SQL] Foreign key constraint

2000-12-12 Thread Sivagami .
  Hi,   I have a question. I tried adding a Foreign Key constraint to a table via the ALTER TABLE command. But the records in the table did not match with those in the Parent table. Now my Alter table command, instead of giving me an error of kind - 'records do not match',  has gone into a k