2017 Aug 04 6:49 PM
I want to create the store procedure but failed to create. my code:
CREATE PROCEDURE "TESTING"."SCALAR_VARIABLE_EXAMPLE_INSERT" (IN paramin NVARCHAR(5000))
LANGUAGE SQLSCRIPT
SQL SECURITY INVOKER
AS
BEGIN
DECLARE username varchar(20) := 'bobbyss';
DECLARE description varchar(100);
description := 'select JSON_VALUE('''||:paramin||''', ''$.description'') AS "desc" from DUMMY';
INSERT INTO "TESTING"."USER" VALUES (:username, :description);
END;
When I call this procedure, show SQL syntax error: incorrect syntax near "select". How to fix this problem? Thanks.
Hi Glide,
in the post from stackoverflow's you shared, that is my post. the last answer cannot fix my problem. any solution? thanks.
Regards,
Bobby
2017 Aug 05 9:47 PM
2017 Aug 07 4:54 PM
Hi Glide,
in the post from stackoverflow's you shared, that is my post. the last answer cannot fix my problem. any solution? thanks.
Regards,
Bobby
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |