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 bcp? When does it use?

506


How can you know if the row fetched from cursor is still valid in underlying table?

513


What is table-valued sub query?

559


What is user defined datatypes and when you should go for them?

572


How do I run sql server 2014?

504






What is the primary use of the model database?

611


What is tablesample?

564


What is mean by candidate key?

531


What is relationship? What number of sorts of relationship are there?

630


What is dbcc command in sql server?

581


What is compression - row-level and page-level compression?

524


you have couple of stored procedures that depend on a table you dropped the table and recreated it what do you have to do to reestablish those stored procedure dependencies?

573


Why do we need normalization?

482


What do we need queues in sql service broker?

522


What is parameterized reports in ssrs ?

105