解决乱码: url字符串加上?useUnicode=true&characterEncoding=utf-8; mysql数据库无法插入中文数据问题:将mysql数据库的编码改为utf-8; ResultSet中get(列名)方法不一定获取的是数据库字段名,也有可能是自定义的别名,例如:select id,name,password pwd from user 此时resultSet.get("password")会抛出异常! 反射封装JDBC: package test; i
package java.sql description What the JDBCTM 4.2 API Includes Versions What the java.sql Package Contains Making a connection with a database via the DriverManager facility Sending SQL statements to a database Retrieving and updating the results of a