how to store only time in a data base table
Answers were Sorted based on User's Feedback
Answer / sudipta santra
No problem, There are 2 ways for doing this:
1. If the field of the table is timezone then you can set
data or insert data of timezone i.e the timezone is upto
milliseconds.
eg. insert into timetab(time_col) values(select
sysdbtimezone from dual);
2. If the field is varchar2 then you can set the value or
insert the time stamp like that:
insert into timetab(time_col)
values(substr(to_char(sysdate,'DD-MON-RRRR'),13);
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / ns
select to_char(systimestamp,'HH24:MM:SS') from dual;
| Is This Answer Correct ? | 1 Yes | 0 No |
without using count(*) and rownum how can we count total record in a table
How can we delete duplicate rows in a table?
"primary key=unique+null" is equal,reson?not,reason?
what are indexes..how many types of index's are there and what are they?
7 Answers Green Info Solutions, TCS,
What privilege is needed for a user to insert rows to tables in another schema?
how to find the second highest salary in a given table????
which statement is running fastly ie insert or delete?
Can a property clause itself be based on a property clause ?
In oracle there is column command, how will you explain that?
Explain the use of full option in exp command.
The join defined by the default data link is an outer join yes or no ?
What are the different approaches used by Optimizer in choosing an execution plan ?