You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '== 0' at line 4 。
在做 java 项目的时候遇到这个报错,mysql5.6 ,我把 sql 改 String sql = "select hid from news_headline";的还是会出现,是因为 mysql 版本问题吗