我如何在动态 SQL 中编写查询,我收到下面给出的错误。
EXECUTE IMMEDIATE
'CREATE TABLE SAMPLE
SELECT EXTRACT (VALUE (d), '''//row/text()''').getstringval ()
FROM (SELECT XMLTYPE ( '''<rows><row>'''
|| REPLACE ('''venkat,vijay,bylla,12''', ''',''', '''</row><row>''')
|| '''</row></rows>'''
) AS xmlval
FROM DUAL) x,
TABLE (XMLSEQUENCE (EXTRACT (x.xmlval, '''/rows/row'''))) d';
错误是:
Error(118,34): PLS-00103: Encountered the symbol "/" when expecting
one of the following: ( - + case mod new null <an identifier>
<a double-quoted delimited-identifier> <a bind variable>