what is the difference between to_char and to_date
functions?
Answer Posted / sanjukata
to_char()is required to convert number type and date type
of value to character type.
try this
select ename,hiredate,to_char(hiredate,'day ddth mon yy')
from emp;
to_date()is required to convert charater type of value to
date type.
try this
select to_date('22092010','dd-mm-yy')from dual;
| Is This Answer Correct ? | 15 Yes | 3 No |
Post New Answer View All Answers
What is a left inner join?
1) Synonyms 2) Co-related Subquery 3) Different Jobs in Plsql 4) Explain Plan 5) Wrap 6) Query Optimization Technique 7) Bulk Collect 8) Types of index 9) IF primary key is created then the index created ? 10) Foreign Key 11) Exception Handling 12) Difference Between Delete and Trunc 13) Procedure Overloading 14) Grant Revoke 15) Procedure Argument types. 16) Functions. 17) Joins
What is join view in sql?
Can we use commit inside a trigger?
Can we perform dml in function?
What is replication id?
How many types of sql are there?
Can we join more than 2 tables in sql?
Is progress software supports to ( pl/sql )?
Difference between table function and pipelined function?
How exception is different from error?
Which is faster count (*) or count 1?
Can we insert in sql function?
What are the features of pl sql?
What are reports usually used for?