pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Fischer <plexus@snafu.de>
To: pgsql-sql@postgreSQL.org
Subject: Creating a index with a timestamp?
Date: Mon, 8 Nov 1999 07:58:28 +0100
Message-ID: <m11kju2-000HFUC@www.xshare.com> (raw)

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



view thread (2+ messages)  latest in thread

Message-ID: <m11kju2-000HFUC@www.xshare.com>
Permalink:  ../m11kju2-000HFUC@www.xshare.com/
Also on:    postgresql.org/message-id/m11kju2-000HFUC@www.xshare.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: plexus@snafu.de
  Subject: Re: Creating a index with a timestamp?
  In-Reply-To: <m11kju2-000HFUC@www.xshare.com>
  References: <m11kju2-000HFUC@www.xshare.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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