Running multi-statement query using JDBC on DB2 windows -
i trying run multi-statement queries using jdbc on db2 10.1 windows fails syntax error. following query-
select * schemaname.tablename;
exception in thread "main" com.ibm.db2.jcc.am.sqlsyntaxerrorexception: unexpected token "" found following "". expected tokens may include: "schemaname.tablename".. sqlcode=-104, sqlstate=42601, driver=4.13.127
i understand comes due semi-colon @ end of query not understand database. how can set query separator semicolon through this.
with jdbc execute 1 statement @ time; looks of db2 doesn't support it. drivers/databases have way around this, non-standard.
so instead of trying execute 2 statements in 1 go, need execute them 1 after other.
Comments
Post a Comment