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 view the tablespaces in the current database?
What is data type in oracle?
How to turn on or off recycle bin for the instance?
How to create a table index?
How to define an external table with a text file?
What is hash cluster in oracle?
Why do you create or replace procedures rather that drop and recreate.
How to view all columns in an existing table?
How to select some rows from a table in oracle?
How to update a table row with a record?
How do we create privileges in oracle?
How to compare dates in oracle sql?
can u send the sql dumps to sivakumarr1987@gmail.com plz help me
What is catalog in Oracle?
What is a connect identifier?