From: | Oleg Broytmann <phd(at)sun(dot)med(dot)ru> |
---|---|
To: | Constantine Manoussakis <cmanoussakis(at)yahoo(dot)com> |
Cc: | pgsql-general(at)postgreSQL(dot)org |
Subject: | Re: [GENERAL] Date & Datetime problems |
Date: | 1998-12-16 08:55:46 |
Message-ID: | Pine.SOL2.3.96.SK.981216115047.9291E-100000@sun.med.ru |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hello!
On Wed, 16 Dec 1998, Constantine Manoussakis wrote:
> 2) what the format of the date & datetime fields must be i.e. if I
> create a table such as 'create table daten(date1 date, date2
> datetime)' what is the format of the date and a=date time. I have
> tried all of the formats mentioned in the .html Programmers manuals,
> but none seem to work.
t=> create table daten (d date, dt datetime);
CREATE
test=> insert into daten values ('1998-12-01', '1998-12-01 11:45');
INSERT 68042 1
test=> insert into daten values ('1998 Dec 01', '21:14 01 Dec 1998');
INSERT 68043 1
test=> select * from daten;
d|dt
----------+----------------------------
01-12-1998|Tue 01 Dec 11:45:00 1998 MSK
01-12-1998|Tue 01 Dec 21:14:00 1998 MSK
(2 rows)
Oleg.
----
Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/
Programmers don't die, they just GOSUB without RETURN.
From | Date | Subject | |
---|---|---|---|
Next Message | Marcin Grondecki | 1998-12-16 16:04:47 | rules - optimizing |
Previous Message | Lothar Behrens | 1998-12-16 08:50:55 | foreign keys |