随笔分类 -  MySQL数据库服务器

摘要:MySQL默认使用 ISO-8859-1 ( 即Latin1 ) 字符集,而JAVA内部使用Unicode编码,因此在JAVA中向MYSQL数据库插入数据时,或者读取数据时,都需要先转换一下编码方式:插入数据:如:...String str="中文";String sql = "insert int... 阅读全文
posted @ 2014-05-27 16:53 朗月缠云 阅读(602) 评论(0) 推荐(0)