tags:

views:

31

answers:

1

how to execute sql which is placed in an xml file using Java code?

+2  A: 
  • Load the SQL Statement as a String out of the XML into a Java Variable (Using SAX or DOM, for example)
  • Execute the SQL Statement
Konerak
+1 Short question and short answer.
adatapost
how to take the sql out to xml...? i want to execute it from the XML....could you post the code?
Can you post (an example/part of) the XML?
Konerak
<sqlQuery>select * from table<sqlQuery>