摘要: Connection.prepareStatement()函数出错,提示: Type mismatch: cannot convert from java.sql.PreparedStatement to com.mysql.jdbc.PreparedStatement 这是因为引入的包不对头, 引 阅读全文
posted @ 2015-02-09 15:44 MSTK 阅读(15420) 评论(0) 推荐(3)
摘要: 用以下SQL语句向表2中插入数据:insert into 表2select *from 表1结果出现Incorrect string value错误:打开表2一看,里面全是问号:后来才发现,表1的几个字段Collation是gbk,而表2的几个字段Collation是latin,把表2的几个字段Co... 阅读全文
posted @ 2015-02-09 12:42 MSTK 阅读(2116) 评论(0) 推荐(0)