Couldn't get field info from [select * from t2]
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 'OPTION SQL_SELECT_LIMIT=DEFAULT' at line 1
今天在输出表中,获取字段出现上面的错误,查原因,才知道,是在lib下的MySQL-connector-Java的jar包的版本不对.
后来选用高一点的版本就可以了
jar包的选择可以参见
各类MySQL链接Java的jar包地址