今天发现了这个错误

java.sql.SQLException: The SQL statement must not be null or empty.

并且看了些网页:综合说下这个错误。

一般都是我这种原因:

在executeQuery之前,我System.out.printf 你的sql,原来是空串。

只要这样if 下就轻松解决了

相关文章:

  • 2021-12-29
  • 2022-12-23
  • 2022-12-23
  • 2021-10-12
  • 2022-12-23
  • 2022-12-23
  • 2021-07-17
  • 2021-06-05
猜你喜欢
  • 2022-12-23
  • 2021-07-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-15
  • 2021-06-16
  • 2022-12-23
相关资源
相似解决方案