how to truncate date and get only time part 9:20:00
Answer Posted / pari
declare
str varchar2(250);
str1 varchar2(250);
begin
select to_char(sysdate,'dd-mm-yyyy hh:mi:ss') into str from
dual;
dbms_output.put_line (str);
str1 := substr(str,instr(str,' ',1)+1 );
dbms_output.put_line (str1);
end;
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How to rename an existing table?
How to connect to a local oracle 10g xe server?
How to use fetch statement in a loop?
Explain the use of control file?
What is parameterized cursor in oracle?
How do I limit the number of oracle database connections generated by weblogic server?
Explain integrity constraints?
How is it different from a normal table?
Explain the use of Merge statement in oracle 11g
What is Trigger in Oracle?
How to synchronize 2 schema's objects?
What is a cognitive schema?
what is the difference between restoring and recovering?
ABOUT IDENTITY?
How do I manually uninstall oracle client?