pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
small problem
2+ messages / 2 participants
[nested] [flat]

* small problem
@ 2002-11-11 14:30 Carlos Sousa <carlosdsousa@hotmail.com>
  2002-11-11 14:42 ` Re: small problem dima <_pppp@mail.ru>
  0 siblings, 1 reply; 2+ messages in thread

From: Carlos Sousa @ 2002-11-11 14:30 UTC (permalink / raw)
  To: pgsql-sql

hi to all

I am doing a webpage and i manipulate data from a postgres database.
I need to do the same thing with a oracle database.
I am using pg_dump to transfer the database data from postgres to oracle
but there are a few problems with same data types in a table when i try to 
import it to a oracle database.

create table (...)
(...)
duration   interval default 7
hourDay    timestamp with time zome
(...)


if i replace this two data types with varchar2(50) it works but i would like 
if there's a better choice

thanks for your time and replay




_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: small problem
  2002-11-11 14:30 small problem Carlos Sousa <carlosdsousa@hotmail.com>
@ 2002-11-11 14:42 ` dima <_pppp@mail.ru>
  0 siblings, 0 replies; 2+ messages in thread

From: dima @ 2002-11-11 14:42 UTC (permalink / raw)
  To: Carlos Sousa <carlosdsousa@hotmail.com>; +Cc: pgsql-sql

> create table (...)
> (...)
> duration   interval default 7
do you really think it's worth spending 12 bytes for your intervals?
i usually use either timestamps or integers for intervals.
btw, as i know default 7 would be 7 msecs :)

> hourDay    timestamp with time zome
consider using it without a time zone maybe.
if you really mean time of a day use time [with time zone]

> (...)
> 
> 
> if i replace this two data types with varchar2(50) it works but i would 
> like if there's a better choice
it seems oracle still has some probs with sql date/time data types...





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2002-11-11 14:42 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-11-11 14:30 small problem Carlos Sousa <carlosdsousa@hotmail.com>
2002-11-11 14:42 ` dima <_pppp@mail.ru>

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