且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Hive 2 JDBC PreparedStatement引发错误,无法识别“?"附近的输入'< EOF>' “< EOF>"在表达规范中

更新时间:2022-05-08 08:26:32

stmt.executeQuery(query);

您使用了错误的方法.您已经准备好对帐单.准备执行.应该是:

You're using the wrong method. You've already prepared the statement. It is ready to execute. It should be:

stmt.execute();