有编程高手没?想解决jsp+access的问题

来源:百度知道 编辑:UC知道 时间:2024/05/26 18:43:53
想问问高手们,这个语句哪错了啊?
我用的是jsp+access, 做毕业设计呢,救命啊

Stmt.executeUpdate("update tushumingxi set shuid='"+shuid+"',leiID='"+lei+"',shu_name='"+shu_name+"',dingjia='"+dingjia+"'
,zhuozhe='"+zhuozhe+"',banshe='"+banshe+"' where shuid="+shuid+"");
我还想问一下高手们哦,在JSP中怎么用ACCESS的SQL语言啊?

例如 怎样 修改 和 删除 上面那两个啊?

你的数据类型错了,shuid/leiID/dingjia是整型的,不能加''

Stmt 在定义的时候是 stmt还是 Stmt还是st ?
再把where shuid="+shuid+""); 改成 where shuid="+shuid);
或者 where shuid='"+shuid+"'");