pg.ddx.io pgsql-sql@postgresql.org mailing list archivehelp / color / mirror / Atom feed
I am writing a MS SQL server conversion utility and am having an issue with timestamp 2+ messages / 2 participants [nested] [flat]
* I am writing a MS SQL server conversion utility and am having an issue with timestamp @ 2005-01-14 21:15 Joel Fradkin <jfradkin@wazagua.com> 2005-01-16 01:50 ` Re: I am writing a MS SQL server conversion utility and am having an issue with timestamp Michael Fuhr <mike@fuhr.org> 0 siblings, 1 reply; 2+ messages in thread From: Joel Fradkin @ 2005-01-14 21:15 UTC (permalink / raw) To: pgsql-sql Any one have a good idea for dealing with a timestamp where only time is available on some of the source records? Some records have both time and day. My MSSQL database has 290 tables so splitting the fields would be a very large project. Is there a way to add just the time part of date time to timestamp? Joel Fradkin Wazagua, LLC 2520 Trailmate Dr Sarasota, Florida 34243 Tel. 941-753-7111 ext 305 jfradkin@wazagua.com www.wazagua.com Powered by Wazagua Providing you with the latest Web-based technology & advanced tools. C 2004. WAZAGUA, LLC. All rights reserved. WAZAGUA, LLC This email message is for the use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and delete and destroy all copies of the original message, including attachments. ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: I am writing a MS SQL server conversion utility and am having an issue with timestamp 2005-01-14 21:15 I am writing a MS SQL server conversion utility and am having an issue with timestamp Joel Fradkin <jfradkin@wazagua.com> @ 2005-01-16 01:50 ` Michael Fuhr <mike@fuhr.org> 0 siblings, 0 replies; 2+ messages in thread From: Michael Fuhr @ 2005-01-16 01:50 UTC (permalink / raw) To: Joel Fradkin <jfradkin@wazagua.com>; +Cc: 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/ ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2005-01-16 01:50 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2005-01-14 21:15 I am writing a MS SQL server conversion utility and am having an issue with timestamp Joel Fradkin <jfradkin@wazagua.com> 2005-01-16 01:50 ` Michael Fuhr <mike@fuhr.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox