on 2015 Sep 23 8:03 PM
Hello,
I'm having problems with a simple query in a procedure.
Can anyone please help me ?
I'm trying to create a simple table filled with data
CREATE PROCEDURE pr01(IN CardCode NVARCHAR(20)) LANGUAGE SQLSCRIPT AS
BEGIN
CREATE COLUMN TABLE TEMPTBL AS (SELECT "DocNum" FROM ORDR WHERE "CardCode" =:CardCode);
END
Thanks,
Paul
Try something like this;
CREATE PROCEDURE pr01(IN CardCode NVARCHAR(20))
LANGUAGE SQLSCRIPT
SQL SECURITY DEFINER AS
BEGIN
CREATE COLUMN TABLE TEMPTBL (DOCNUM NVARCHAR(20));
INSERT INTO TEMPTBL SELECT "DocNum" FROM ORDR WHERE CardCode = :CardCode;
END
-Patrick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
11 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.