I have to read the below SQL statement from one properties.
update scoreconfig set scorestatus=0 where scoreversion=props.getProperty("scoreversion");
And value for score version I've to take it from other properties file.
But, when I prepare a statement in java function as below:
final String query = strLine;
PreparedStatement ps=con.prepareStatement(query);
where query has
update scoreconfig set scorestatus=0 where scoreversion=props.getProperty("scoreversion");
But I get
Error: ORA-00911: invalid character
...when I do ps.execute();
[?]link above the question textbox and aHow to Formatbox to the right of it, listing amongst other things how you mark up code to make it readable in the question. Well worth a read. I was about to fix it for you, but rsp beat me to it. :-)@user829710Welcome to StackOverflow! I recommend you to change your username.where query has = ...is not part of the java code; the author wanted to say: In the avobe code, thequeryvariable contains the previously readen SQL (update scoreconfig set scorestatus ...) (This is why I replaced it with a comment) Don't you think that?