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

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -