Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: DBMS_SQL and select count(*) into :x - error ORA-01006
Hi
I think I have figured out problem in your script. However
I have not tried running it. I have marked the portion in
the script below.
Osipov N.F. wrote in message ...
>Hi!
>
>I ask you to help, if there will be a time.
>
>In the documentation:
>Oracle7 Server Application Developer's Guide, chapter 10 Using Dinamic SQL
>I did not manage to find the answer for the decision of a task.
>
>It is necessary to create a procedure for definition of quantity of records
>in different tables.
>In these tables is identical column - date _ rec (date)
>
>With run of a procedure recno_tab there is a error
>ORA-01006 Bind variable does not exist
>
>Prompt, please, in what here error?
>
>create or replace procedure recno_tab
>( tname in varchar2, date_a in date, n_row out number) as
> i number;
> x number;
> n number;
> cmd varchar2 (200);
>begin
> i: = dbms_sql.open_cursor;
Hope that solves problem
> dbms_sql.parse (i, cmd, dbms_sql.v7);
> dbms_sql.bind_variable (i, ':x', n);
> x: = dbms _ s(i))
> dbms_sql.close_cursor(i))
> n_row: = n;
>end;
>
>Very much I ask to answer on e-mail.
>
>Yours faithfully, Nikolai Osipov
>Yamburg Tyumen Russia
>nfo_at_yamb.ygaz.tyumen.su
>
>
>
>
>
>
>
>
Received on Sun Nov 30 1997 - 00:00:00 CST