sql - How to add where clause condition of type varchar in dbms_xmlgen.getxml? -


this query trying

select dbms_xmlgen.getxml('select * city city_name="rome"') xml dual 

but giving error.

image description here

when tried select dbms_xmlgen.getxml('select * city city_id=10446') xml dual worked fine.

please can 1 tell me how add condition varchar type?

try using pair of single quote eg:

 select dbms_xmlgen.getxml('select * city city_name=''rome''  ') xml dual 

Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -