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 is difference between DBMS and RDBMS?
What privilege is needed for a user to connect to oracle server?
why dont we assign not null constraint as table level constraint.
How to call a trigger inside a stored procedure?Give an example.
What is the purpose of tables, private synonyms and public synonyms in Oracle?
Describe Referential Integrity ?
What are the different types of modules in oracle forms?
Hi Masters, in Oracle Applications 11i, we hace 2 functions using the same form, i need to create 1 personalization, but that code must afect only one function.... how can i do that?
What is bulk load in oracle?
15. Display the item_cost and then truncate it to the nearest hundred, ten, unit, tenth and hundredth.
What does COMMIT do ?
Differnce between view and index