Is it possible to enter only time value into a column of a
table in sql?
Answer Posted / nannesaheb c
There is no such data type is existed in Oracle to store the time in a column directly.
However we can insert the time value in a column using the sql functions as below.
SELECT substr(to_char(sysdate,'DD-MON-YYYY HH:MM:SS'),12,20) FROM dual;
create table time1
(
today_time varchar2(10)
);
insert into time1 values(substr(to_char(sysdate,'DD-MON-YYYY HH:MM:SS'),12,20));
Regards,
Nanne
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Does oracle partitioning improve performance?
What is null value in oracle?
How to use "startup" command to start default instance?
Can select statements be used on views in oracle?
WHAT IS ecc 6.0
What is the maximum number of triggers that can be applied to a single table?
How to select some rows from a table in oracle?
How would you best determine why your MVIEW couldnt FAST REFRESH?
How to retrieve values from data fields in record variables?
How can I combine multiple rows into a comma-delimited list in oracle?
How to update values on multiple rows in oracle?
Hi Can any one tell me what are the API's used in requisition import.
State and explain about oracle instance?
How to define a sub function?
How to use null as conditions in oracle?