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
How to write date and time literals in oracle?
What is the difference between alert log file and tarce file ?
How do I call oracle stored procedures that take no parameters?
Give the advantages and disadvantages of clusters.
How to create a new view in oracle?
What exactly do quotation marks around the table name do?
HI, Please let me know the syllabus for Oracle OCA and OCP Certification
What is using clause and give example?
Can a formula column referred to columns in higher group ?
What is columnar storage what is the advantage?
How to import one table back from a dump file?
Why use resource manager in Oracle?
How to insert a new row into a table in oracle?
How to create a table in a specific tablespace?
Why do we need oracle client?