Solved

Oracle DATE to TIMESTAMP conversion

Posted on 2006-11-13
5
2,197 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and theā€¦
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
Via a live example, show how to take different types of Oracle backups using RMAN.
This video shows how to recover a database from a user managed backup
Suggested Courses

635 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