I am creating a database and i am a bit confused as to using date or timestamp for a field.
I need to create some triggers to check available dates and times so i thought that i could use the same field to store the two values.
I am more inclined into using TIMESTAMP and therefore;
TO_TIMESTAMP('18/03/2012 02:24', 'DD/MM/YYYY HH24:MI')
Will using timestamp work better than using date? or date and time in different fields.
Cheers
the DATE datatype also stores times, so you wouldn't need two fields. The difference between the two is that
the timestamp data type is more modern (ASNI) whereas DATE has been around in Oracle longer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With