how to truncate date and get only time part 9:20:00
Answers were Sorted based on User's Feedback
Answer / sandeep
select to_char(sysdate,'HH24:MM:SS') from dual;
| Is This Answer Correct ? | 9 Yes | 1 No |
Answer / 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 |
Answer / saisivakumar
select <column_name>,to_char (<column_name>,'fmdd month
yyyy fmhh:MI:ss am') from <table_name> where
condition;
Note: i have given for both date and time, pls use as u
want.
| Is This Answer Correct ? | 1 Yes | 2 No |
Answer / kumar.t
Select Convert(varchar,getdate(),114) As DateTime
It is Only Run In Sql Server2000
By
Kumar .T
| Is This Answer Correct ? | 0 Yes | 1 No |
What is the Difference between 1) ER MODEL and Relational Model 2) Dense Index and Sparse Index
What are the advantages of oracle 12c?
What language does oracle use?
Ho to insert no. of records at a time..i mean i want to insert 100 records at a time into a table
What is a Garbage Collection? and what is full recursive Garbage collection?
How to view the dropped tables in your recycle bin?
Can a formula column be obtained through a select statement ?
Explain the use of owner option in exp command.
What is key preserved table?
What is a system tablespace?
What is a Sequence ?
When do I need to use a semicolon vs a slash in oracle sql?