Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2895

Re: Creating a Dynamic Prompt (Today's Date and Yesterday's Date) in Oracle

$
0
0

Hi Umair,

 

You are trying to create the prompt for Oracle database but you are using the functions of MSSQL server. Convert(varchar(10), GetDate(), 112 is sql server function.

Change this function specific to Oracle syntax and try parsing the prompt.

 

You need to use Sysdate function instead of getdate function for oracle.

And Use to_char, to_date functions to convert the default date to the required format.


Viewing all articles
Browse latest Browse all 2895

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>