Solved

Oracle DATE to TIMESTAMP conversion

Posted on 2006-11-13
5
2,194 Views
Last Modified: 2012-06-22
I am using oracle 9i currently we use date datatype in couple of fields.
what are the possible risks if we use TIMESTAMP datatype instead of DATE?


0
Comment
Question by:bondzoro
5 Comments
 
LVL 27

Accepted Solution

by:
sujith80 earned 25 total points
ID: 17929497
- Timestamp takes more space. Around 13 bytes, Compared to date - 7 bytes.
- If your application doesnt requires precision upto timestamp go for date
0
 
LVL 7

Assisted Solution

by:Stephen Lappin
Stephen Lappin earned 25 total points
ID: 17929584
Discoverer does not support TIMESTAMP.
There can be issues with timezone and daylight savings when comparing TIMESTAMPS.

If all you need it the time to the nearst second, I would recommend that yuu stick with DATE.
0
 
LVL 48

Expert Comment

by:schwertner
ID: 17929659
USE TIMESTAMP only if you need fraction of seconds.
There is no risk to use it. By default it stores dates with 6 digits after the decimal
points of the seconds.
TIMESTAMP with TIMEZONE is more complex and causes more errors
by different applications.
0
 
LVL 1

Expert Comment

by:Computer101
ID: 20296227
Forced accept.

Computer101
EE Admin
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question