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
Give the various exception types.
How to list all user accounts in oracle?
What are the different oracle database objects?
What is the data pump import utility?
normally database take to refresh time 2 hours. but client asked iwant to refresh with in 5 min that same database. do you have any option in BO and Oracle? explain me briefly...kavi
What are operators in oracle?
what is IDE,DMV in sql server?
What is transport network substrate (tns) in oracle?
Point the difference between translate and replace?
What is a tns file?
What view(s) do you use to associate a users SQLPLUS session with his o/s process?
What is object data modeling?
How many types of table in Oracle?
What happens if recursive calls get out of control?
How to write date and time literals in oracle?