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 |
Can you use a commit statement within a database trigger?
I creat Credit memo in AR. Now i want revers the Credit Memo.how you can revers that what out any aditional entry.
I have query like this. select dept_id, max_mark from stude_dept where min_mark= (select min(mini_mark) from stud_dept); How can i optimize this query. Can anyone help me with it
Can we create trigger on materialized view in oracle?
what is normalisation?what are its uses?
which clause we are not used in where clause?
What is self-referential integrity constraint ?
How to export your connection information to a file?
Where do you use decode and case statements?
What is the difference between Sleep and Wait? (Java)
The table has 3 columns 4 rows. The output is which column has least null values( A COL SHOULD BE THE OUTPUT) Write the query plz. A B C ================ 1 NULL 2 NULL 3 4 NULL 5 6 7 NULL NULL O/P C = 2 4 6
I have table-A(1,2,3,4,4,5,6,6,6,7). how to get all duplicate values?what is sql query?