| 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 06:58:28 |
| Message-ID: | m11kju2-000HFUC@www.xshare.com |
| Views: | Whole Thread | Raw Message | 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Stoyan Genov | 1999-11-08 09:27:07 | Re: [SQL] Move forward all (Was Re: How to get last 10 rows in a table on a large database?) |
| Previous Message | De Moudt Walter | 1999-11-08 04:16:26 | Re: [SQL] type conversions |