system date format is "yy-mm-dd"
"select getdate()" ----> 2009-01-24 20:03:28.513
if i write "select dateadd(dd,2,getdate())
".it returns "2009-01-26 19:59:38.340"...my question is dat
could it be possible to retrive da date in da format "26
jan 2009 ...."??

Answer Posted / praveen kumar.dandu

select to_char('sysdate',dd mon yyyy)from dual



convert the date format to chars and retrive the the system
date in the format what eve r u like

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is cross join in sql server joins?

801


Can we create clustered index on composite key?

686


If any stored procedure is encrypted, then can we see its definition in activity monitor?

730


What are the default system databases in sql server 2000?

688


What options are there to delete rows on the publisher and not on the subscriber? : sql server replication

894






What is auditing in sql server?

688


How to delete duplicate rows?

710


what is database replicaion? What are the different types of replication you can set up in sql server? : Sql server database administration

724


What are subquery and its properties?

735


What is the use of nvl work?

721


What are the new features are introduced in sql server 2012 reporting services?

121


What is dml command?

718


What extended events?

766


what are the steps you will take to improve performance of a poor performing query? : Sql server database administration

709


Can we use trigger new in before insert?

684