Creating a index with a timestamp?

From: Oliver Fischer <plexus(at)snafu(dot)de>
To: pgsql-sql(at)postgreSQL(dot)org
Subject: Creating a index with a timestamp?
Date: 1999-11-08 13:27:47
Message-ID: m11kpyt-000HFUC@www.xshare.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Morning,

i have tried to create a table like this..

CREATE TABLE USERS
(
NAME TEXT NOT NULL,
LOGIN CHAR(18) NOT NULL,
PASSWD CHAR(18) NOT NULL,
CDATE TIMESTAMP
)

Ok, this works. After this i have tried to create a index for the
primary key..

CREATE UNIQUE INDEX USERS_PK ON USERS
(
LOGIN,
CDATE
)

But i got an error for the CDATE part of the index. My question
is: How could I create a index that contains a timestamp. I need
it in several tables for the primary key.

MfG

Oliver Fischer

#--{ plexus(at)snafu(dot)de }----------------------------
Oliver Fischer, Gleimstrasse 59, 10437 Berlin, Germany

Browse pgsql-sql by date

  From Date Subject
Next Message Baris Ulu 1999-11-08 14:32:22 Declare Cursor...
Previous Message Frederic boucher 1999-11-08 11:37:47 parser :parse error