pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedCreating a index with a timestamp?
2+ messages / 1 participants
[nested] [flat]
* Creating a index with a timestamp?
@ 1999-11-08 06:58 Oliver Fischer <plexus@snafu.de>
0 siblings, 0 replies; 2+ messages in thread
From: Oliver Fischer @ 1999-11-08 06:58 UTC (permalink / raw)
To: 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@snafu.de }----------------------------
Oliver Fischer, Gleimstrasse 59, 10437 Berlin, Germany
^ permalink raw reply [nested|flat] 2+ messages in thread
* Creating a index with a timestamp?
@ 1999-11-08 13:27 Oliver Fischer <plexus@snafu.de>
0 siblings, 0 replies; 2+ messages in thread
From: Oliver Fischer @ 1999-11-08 13:27 UTC (permalink / raw)
To: 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@snafu.de }----------------------------
Oliver Fischer, Gleimstrasse 59, 10437 Berlin, Germany
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~1999-11-08 13:27 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-11-08 06:58 Creating a index with a timestamp? Oliver Fischer <plexus@snafu.de>
1999-11-08 13:27 Creating a index with a timestamp? Oliver Fischer <plexus@snafu.de>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox