on 03-27-2019 8:03 AM
I want to run this code on the SQL console in hana studio without creating a procedure balakumar.viswanathan2
DECLARE FromDate DATE;
SELECT TOP 1 "RefDate" INTO FromDate FROM TestTable;
SELECT FromDate FROM DUMMY;
rahul.jain257 balakumar.viswanathan2 any help on the below question:
please i want to use these variable as parameters in the below procedure.
but the stored procedure is not showing any data knowing that if i execute the stored procedure with static dates it shows data CALL STORED_PROCEDURE('20190101','20191231');
DOBEGIN
DECLARE FromDate Date;
DECLARE ToDate Date;SELECTTOP1CAST("RefDate" AS DATE) INTO FromDate FROM T0;SELECTTOP1CAST("RefDate" AS DATE) INTO ToDate FROM T0 ORDER BY "RefDate" DESC;CALL STORED_PROCEDURE(:FromDate,:ToDate);END
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
9 | |
7 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.