Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> DYNAMIC SQL PROBLEM - help
Hello,
Does anybody know what the problem is here? It compiles all right, but blows up at runtime. Thanks
SQL> CREATE OR REPLACE PROCEDURE arl (table_name_in IN VARCHAR2)
2 IS
3
4 avg_row_len NUMBER := 0; 5 avg_row_len_hold NUMBER := 0; 6 col_name VARCHAR2(30);
28 'SELECT AVG(VSIZE(col_name)) INTO avg_row_len FROM :x1', 29 DBMS_SQL.V7);
40
41 END;
42 /
Procedure created.
SQL> exec arl('company')
ID
begin arl('company'); end;
*
ERROR at line 1:
ORA-00905: missing keyword ORA-06512: at "SYS.DBMS_SYS_SQL", line 491 ORA-06512: at "SYS.DBMS_SQL", line 32 ORA-06512: at "KLIST.ARL", line 27 ORA-06512: at line 1 -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your OwnReceived on Mon Apr 12 1999 - 12:16:57 CDT