Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Dynamic SQL in a function
No space following the = sign.
Also the rowid would need to be embedded in quotes at the least, but
better still you would use the chartorowid function.
str := 'SELECT n.' || fld || ' INTO long_var FROM ttadm.' || tbl || '
n WHERE n.rowid = chartorowid(''' || v||''')';
The code of course is horrible and won't scale.
-- Sybrand Bakker Senior Oracle DBAReceived on Mon Sep 19 2005 - 03:18:52 CDT
![]() |
![]() |