Re: Finding bogus dates

Поиск
Список
Период
Сортировка
От Brandon Aiken
Тема Re: Finding bogus dates
Дата
Msg-id F8E84F0F56445B4CB39E019EF67DACBA44F06A@exchsrvr.winemantech.com
обсуждение исходный текст
Ответ на Re: Finding bogus dates  (Scott Ribe <scott_ribe@killerbytes.com>)
Список pgsql-general
Actually, now that I think about it a second you can find them really
easy just by doing:

SELECT * FROM "foo"
WHERE to_char(to_date("oldDate",'MM/DD/YYYY'),'MM/DD/YYYY') <>
"oldDate";

--
Brandon Aiken
CS/IT Systems Engineer

-----Original Message-----
From: Scott Ribe [mailto:scott_ribe@killerbytes.com]
Sent: Thursday, January 18, 2007 3:48 PM
To: Brandon Aiken; pgsql-general postgresql.org
Subject: Re: [GENERAL] Finding bogus dates

I didn't know to_date would do that. It's better anyway. I just
continued
with the "fix and try again" approach and they're only 2 bad dates out
94,000+, so I don't have a huge problem here. I can try to do some
research
and find the correct date, but failing that, the to_date approximation
is
probably no worse than using null.

--
Scott Ribe
scott_ribe@killerbytes.com
http://www.killerbytes.com/
(303) 722-0567 voice



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

Предыдущее
От: Scott Ribe
Дата:
Сообщение: Re: Finding bogus dates
Следующее
От: Scott Ribe
Дата:
Сообщение: Re: Finding bogus dates