Re: [NOVICE] Make year 01/01/0001 but leave timestamp alone

Поиск
Список
Период
Сортировка
От daq
Тема Re: [NOVICE] Make year 01/01/0001 but leave timestamp alone
Дата
Msg-id 16139676609.20050802182227@ugyvitelszolgaltato.hu
обсуждение исходный текст
Список pgsql-sql
WJS> I have a situation where we have a timestamp column but in special cases
WJS> we want to set the date to '01/01/0001' and leave the timestamp alone.
WJS> For example, '11/04/2005 10:30:05' would become '01/01/0001 10:30:05'.
WJS> I've been going through the various date time functions but don't see a
WJS> simple way to do this. Can someone help?

WJS> Thanks,

WJS> Jed

Maybe... Chomp the date part and concatenate the timestamp with
'01/01/0001'

DAQ



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Calling SQL functions that return sets
Следующее
От: Henry Ortega
Дата:
Сообщение: Breakdown results by month