摘要: use usermanager; select * from user; alter table user character set gbk;alter table user change column uname username varchar(20);show create table us... 阅读全文
posted @ 2014-02-07 18:58 枯竹修 阅读(169) 评论(0) 推荐(0) 编辑
摘要: public static Connection getConnection() throws SQLException, java.lang.ClassNotFoundException { Class.forName("com.mysql.jdbc.Driver"); String url = "jdbc:mysql://localhost:3306/usermanager?useUnicode=true&characterEncoding=gbk"; String username = "root"; String pa 阅读全文
posted @ 2014-02-07 18:52 枯竹修 阅读(169) 评论(0) 推荐(0) 编辑