各位大侠帮帮小弟,谢了~,删除数据问题???????、、

zigine 2003-07-28 05:32:22
为什么我读出的是?delete * from yiyatrans where id in (, 221)有个,号,这是为什么,要怎么办?

<%
response.end
end if
end if

If Request.QueryString("step")="del" then
strSQL="delete * from yiyatrans where id in ("&trim(request.Form("id"))& ")"

response.Write(strsql)
'Conn.Execute(strSQL)
...全文
35 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
tfhui928 2003-07-28
  • 打赏
  • 举报
回复
你试试:
strSQL="delete * from yiyatrans where id='"&trim(request.Form("id"))& "'"

zorou_fatal 2003-07-28
  • 打赏
  • 举报
回复
你的表单里是不是有多个name为id的input?
xiaobaowu 2003-07-28
  • 打赏
  • 举报
回复
这个问题是由于在你的表单中有两个以上的id,你查一下,把多余的去掉就行了。

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧