java - Query terminate with semicolon(;) get SqlException and process does not terminate -
say query is
select * table_a pk=1;
if run query(with semicolon) java using preparedstatement, sqlexpection
thrown. using oracle 10g , java 5.
my question :though query valid one, why sqlexception(ora-00911: invalid character) occurred when query executed form java prepared statement ?
statement terminators not part of statement itself. jdbc api intended execute individual statements, statement should not terminated.
for databases, statement terminator not part of statement syntax, artifact of cli (which needs know when query finished sent server).
Comments
Post a Comment