Re: I am writing a MS SQL server conversion utility and am having an issue with timestamp
В списке pgsql-sql по дате отправления:
| От | Michael Fuhr |
|---|---|
| Тема | Re: I am writing a MS SQL server conversion utility and am having an issue with timestamp |
| Дата | |
| Msg-id | 20050116015036.GA34820@winnie.fuhr.org обсуждение |
| Ответ на | I am writing a MS SQL server conversion utility and am having an issue with timestamp ("Joel Fradkin" <jfradkin@wazagua.com>) |
| Список | pgsql-sql |
On Fri, Jan 14, 2005 at 04:15:02PM -0500, Joel Fradkin wrote: > Any one have a good idea for dealing with a timestamp where only time is > available on some of the source records? TIMESTAMP values contain a date and time. If you have only times then they'll have to go in a TIME column or you'll have to use a bogus date in a TIMESTAMP column (ugly). > Some records have both time and day. > > My MSSQL database has 290 tables so splitting the fields would be a very > large project. Couldn't a conversion be done programatically? Or are there too many special cases that need wetware intervention? > Is there a way to add just the time part of date time to timestamp? Not that I'm aware of. Unless I'm mistaken you'll have to use separate DATE and TIME columns and set the date to NULL, else assign a bogus date where the date is missing, which wouldn't smell very nice. -- Michael Fuhr http://www.fuhr.org/~mfuhr/
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера