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 Index and different types of Indexes?
What is a table index in oracle?
what is trigger?
What is a recycle bin in oracle?
What are a cluster and non-cluster index?
What is the difference between "as" and "is" in an oracle stored procedure?
i have a table with the columns below as Emp_ID Address_ID Address_Line City Country -------- --------- ----------- ------ --------- Q: Display the Emp_ID's those having more than one Address_ID
Whether any commands are used for months calculation? If so, what are they?
Give syntax for SQL and ORACLE joins.
select trunc(round(156.00,-1),-1) from dual;
What is blob data type in oracle?
What is the usage of synonyms?