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 are the different editions of oracle?
What are the set operators union, union all, minus & intersect meant to do?
What is blob datatype?
What is logical backup in oracle?
What is index-organized table in Oracle?
How do I know if oracle is installed on windows?
How do I find the database name in oracle?
What is a proxy object?
what is the difference between data migration and production migration.
Other than making use of the statspack utility, what would you check when you are monitoring or running a health check on an Oracle 8i or 9i database?
how can db_files > maxdatafiles since db_files is for instance and the later is for database
How to fetch the row which has the max value for a column?
How to insert multiple rows with one insert statement in oracle?
What does sharding mean?
Can we call procedure inside function in oracle?