这是什么错误? 最需要注意的是:中文10个字符存数据库通常要20个char()。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 可是我设定的vachar类型是5000,不可能越界的。 request.getParameter("content")长度太长,在服务器接收的时候时间太长吧. author =new String (request.getParameter("author").getBytes("ISO-8859-1"),"gb2312"); title =new String (request.getParameter("title").getBytes("ISO-8859-1"),"gb2312"); content =new String (request.getParameter("content").getBytes("ISO-8859-1"),"gb2312"); int id = Integer.parseInt(request.getParameter("id")); sql = "update library_news set title = '"+ title +"', content = '"+ content +"',author = '"+ author +"' where id = "+ id; conn.executeUpdate(sql); 这是代码 新闻内容到底该怎么接才合理??就用String 吗 求助,Eclipse4.2 中配置Tomcat7.0报错 不能修改Java项目 ubuntu中文乱码,邮件不能发送。。。SOS SignonFilter问题 请教各位编程高手. 请问页面之间传递参数总共有几种方法? NTKO空间Savedoc时报文件传输错误 jsp文件上传? 一个mode II 的问题 怎么获取a的连接 hibernate 同一页面向两个表插入数据,并检查记录是否重复????
title =new String (request.getParameter("title").getBytes("ISO-8859-1"),"gb2312");
content =new String (request.getParameter("content").getBytes("ISO-8859-1"),"gb2312");
int id = Integer.parseInt(request.getParameter("id")); sql = "update library_news set title = '"+ title +"', content = '"+ content +"',author = '"+ author +"' where id = "+ id;
conn.executeUpdate(sql); 这是代码