mysql prepared statement error: MySQLSyntaxErrorException

前端 未结 2 636
失恋的感觉
失恋的感觉 2020-11-28 16:35

I wrote select statement using prepared statement. Each time try to run it gives this error. How am I over come this error? my jdbc connector is mysql-connector-java-5.1.13-

2条回答
  •  春和景丽
    2020-11-28 17:16

    executeQuery(your QUERY)
    

    is supported while you all dealing with Statment object

     rs = stmt.executeQuery();
    

提交回复
热议问题