Is it possible to enter only time value into a column of a
table in sql?
Answers were Sorted based on User's Feedback
Answer / 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 |
What are the commands youd issue to show the explain plan for select
Differentiate the standard purchase order,Blanket purchase agreement,Contract purchase agreement,Planned purchase order?
What is a nested table and how is it different from a normal table?
what is the difference between restoring and recovering?
How to remove a row in a database table?
You create a private database link and upon connection, fails with: ORA-2085: connects to . What is the problem? How would you go about resolving this error?
Difference between pre-select and pre-query
Explain the truncate in oracle?
How to view existing locks on the database?
How to delete multiple rows from a table in oracle?
what is the difference between simple view and complex view?
how to use select statement as formal parameter in procedure specification?(someone said that using string) ex:-procedure(a in number,select ename from emp ) i am asking syntax like this?