Type mismatch: cannot convert from java.sql.PreparedStatement to com.mysql.jdbc.PreparedStatement
import java.sql.PreparedStatement;
java连接数据库的问题:Type mismatch: cannot convert from ResultSet to ResultSet
包导入错了,你要导入的是
import java.sql.ResultSet;
Type mismatch: cannot convert from java.sql.PreparedStatement to com.mysql.jdbc.PreparedStatement
import java.sql.PreparedStatement;
包导入错了,你要导入的是
import java.sql.ResultSet;