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