I know I'm missing something but I can't figure out what it is? Something trivial I'm shure.
Expand|Select|Wrap|Line Numbers
- 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.
Expand|Select|Wrap|Line Numbers
- DECLARE
- BEGIN
- IFSAPP.CREATE_BLOK_ID('25196');
- END;
"TRANSID": invalid identifier at "DATABASE.CREATE_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.