plsql - PLS-00103 Encountered the symbol "EOF" when expecting...error -


my error:

ora-06550: line 3, column 3: pls-00103: encountered symbol "end-of-file" when expecting 1 of following:

; symbol ";" substituted "end-of-file" continue.

this script i'm trying run

    begin bpt.insert_codes('test2','test', 'testing', 'abc',234); end;/ 

relevant stored procedure

    create or replace procedure bpt.insert_codes (               str_table_name            in        bpt.code_table_name.table_name%type,           str_code                 in        varchar2,           str_desc                  in          varchar2,         str_user_id                  in        bpt.city.user_id_ent_by%type,           int_user_seq                 in           number)  /*******************************************declaration********************************    **********/          int_code_seq        number(7);         str_column_prefix           varchar2(22);                 str_query                    varchar2(800);  /*************************************** execution             ************************************************/      begin             /* column prefix */         select column_prefix           str_column_prefix             bpt.test3          table_name = 'city';             /* next code sequence */            str_query := 'bpt.'||str_column_prefix||'seq';         int_code_seq := bpt.common_functions.get_next_val(str_query);          /* insert entries code tables */                     str_query := 'insert bpt.'||str_table_name;           str_query :=    concat(str_query, ' (' || str_column_prefix ||'           , ');           str_query :=    concat(str_query,    '_seq, ');           str_query :=    concat(str_query,         str_column_prefix || '_code, ');           str_query :=    concat(str_query,         str_column_prefix     || '_description, ');           str_query :=    concat(str_query,          'user_id_ent_by, ');           str_query :=    concat(str_query,          'user_seq_ent_by, ');           str_query :=    concat(str_query,          'dt_ent) ');           str_query :=    concat(str_query, 'values('|| int_code_seq || ', ');           str_query :=    concat(str_query,                str_code || ', ');           str_query :=    concat(str_query,                str_desc ||', ');           str_query :=    concat(str_query,          ''''|| str_user_id ||''',');           str_query :=    concat(str_query,            int_user_seq || ',');           str_query :=    concat(str_query,           ' sysdate )');            execute immediate str_query;                commit;   end insert_codes; 

i've seen questions similar mine, using reserve word, or missing semi-colon. can't see either! thank help. has been driving me mad 2 days.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -