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

Re: How to use NOW(); in CE view with constant time "00:00:00"

$
0
0

Hi Raja,

 

sorry - but I really don't get what you want to do here.

If you want to take the current date and retrieve a timestamp column out of it where all time related figures are 0 (that is hours, minutes, seconds, split seconds), a simple type conversion would do the trick:

 

 

/********* Begin Procedure Script ************/

BEGIN

    declare v_const_date timestamp :=   current_date;

  

  var_out = select :v_const_date as const_date,

                1 as CNT

               from dummy;

 

 

END /********* End Procedure Script ************/

 

CURRENT_DATE returns a DATE data type but we assign it to a timestamp, so the remaining time related information are set to 0.

 

- Lars


Viewing all articles
Browse latest Browse all 9164

Trending Articles



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