mysql prepared statement error: MySQLSyntaxErrorException

前端 未结 2 639
失恋的感觉
失恋的感觉 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:14

    error is in this line

        rs = stmt.executeQuery(selectSQL);
    

    do this way

        rs = stmt.executeQuery();
    

提交回复
热议问题