Thread: small problem

small problem

From
"Carlos Sousa"
Date:
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



Re: small problem

From
dima
Date:
> 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...