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
what is reindexing?
How to return top 5 rows in oracle?
Does oracle partitioning improve performance?
How to get maxsal , minsal, ename department wise in single query
Explain the use of indexes option in exp command.
How a tablespace is related to data files?
State the various uses of dbcc command?
What is oracle open database communication (odbc)?
What are the built-in functions used for sending Parameters to forms ?
Explain the use of indexes option in imp command.
Explain mutating triggers.
Can group functions be used in the order by clause in oracle?
How does propagation differ between Advanced Replication and Snapshot Replication (read-only)?
How to change user password in oracle?
Explain the use of parfile option in exp command.