Hi,
I know I'm missing something but I can't figure out what it is? Something trivial I'm shure.
That's the procedure I have written and the code is used to call the procedure is the code underneath.
The stored procedure compiles fine, but on executing it it gives an error.
"TRANSID": invalid identifier at "DATABASE.CREAT E_BLOK_ID", line 11 at line 6
I'm thinking that it has something to do with the input value of the procedure or the value type of the table I'm checking against with the WHERE clause.
Thanks in advance for the help.
I know I'm missing something but I can't figure out what it is? Something trivial I'm shure.
Code:
create or replace PROCEDURE CREATE_BLOK_ID(transId IN NUMBER) AS
BEGIN
EXECUTE IMMEDIATE 'CREATE TABLE Temp_BlokID_Values AS (SELECT TRANSPORT_ID,MARK_1,PORT_ID FROM DATABASE.TABLE WHERE DATABASE.TABLE.TRANSPORT_ID = transId)';
END CREATE_BLOK_ID;
That's the procedure I have written and the code is used to call the procedure is the code underneath.
Code:
DECLARE
BEGIN
IFSAPP.CREATE_BLOK_ID('25196');
END;
"TRANSID": invalid identifier at "DATABASE.CREAT E_BLOK_ID", line 11 at line 6
I'm thinking that it has something to do with the input value of the procedure or the value type of the table I'm checking against with the WHERE clause.
Thanks in advance for the help.
Comment