Creating a index with a timestamp?

Поиск
Список
Период
Сортировка
От Oliver Fischer
Тема Creating a index with a timestamp?
Дата
Msg-id m11kju2-000HFUC@www.xshare.com
обсуждение исходный текст
Список 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


В списке pgsql-sql по дате отправления:

Предыдущее
От: De Moudt Walter
Дата:
Сообщение: Re: [SQL] type conversions
Следующее
От: Stoyan Genov
Дата:
Сообщение: Re: [SQL] Move forward all (Was Re: How to get last 10 rows in a table on a large database?)