Re: UNIQUE constraint, proper use

2005-11-22 Thread Martijn Tonies
> I have this SQL statement: > > CREATE TABLE rooms ( > idSERIAL, > room_name TEXT UNIQUE, > location TEXT, > last_updated TIMESTAMP DEFAULT > CURRENT_TIMESTAMP NOT NULL

Re: UNIQUE constraint, proper use

2005-11-22 Thread Harald Fuchs
In article <[EMAIL PROTECTED]>, Ferindo Middleton Jr <[EMAIL PROTECTED]> writes: > I have this SQL statement: > CREATE TABLE rooms ( > idSERIAL, > room_name TEXT UNIQUE, > location TEXT, >

Re: UNIQUE constraint, proper use

2005-11-21 Thread Paul DuBois
At 22:49 -0500 11/21/05, Ferindo Middleton Jr wrote: I have this SQL statement: CREATE TABLE rooms ( idSERIAL, room_name TEXT UNIQUE, location TEXT, last_updated TIMESTAMP

UNIQUE constraint, proper use

2005-11-21 Thread Ferindo Middleton Jr
I have this SQL statement: CREATE TABLE rooms ( idSERIAL, room_name TEXT UNIQUE, location TEXT, last_updated TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL,