Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a website which aacepts data and stores it in oracle database

i have table in oracle
one of its column Intension_Start_date is of type date

the website acepts time in 00:00:00 format and stores it in column Intension_Start_date

the column has value 1 jan 1980
how can i get time for this column

whatever time i write the column shows only 1 jan 1980
how can i check whether whatever time i entered through website is entered in database
Posted

In SQL Server we always use Getdate(), it shows the current date and time..in Oracle i guess this should work..
 
Share this answer
 
Try this:
SQL
SELECT TO_CHAR(Col1, 'mi:ss') FROM Table1
 
Share this answer
 
Comments
Member 8081020 25-Jul-11 5:23am    
Thanks; It Worked
If you are talking about Oracle you may use EXTRACT() function.
Here is a link about it:

http://www.java2s.com/Tutorial/Oracle/0260__Date-Timestamp-Functions/Catalog0260__Date-Timestamp-Functions.htm[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900