标题:求助,这个语句为何只删除一个表中的数据?
取消只看楼主
zcylk
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2006-4-27
 问题点数:0 回复次数:0 
求助,这个语句为何只删除一个表中的数据?

if act="auc" then
sqldel="delete from auctions where aucid in (" & uid & ")"
sqldel="delete from msg where aucid in (" & uid & ")"
elseif act="ly" then
sqldel="delete from msg where msgid in ("& uid &")"
else
response.write"<script language=javascript>alert('数据删除失败!');history.back(-1);</script>"
response.end
end if



前三句是要删除auctions和msg表中auicd等于请求uid的所有记录,但执行下来却没有删除任任何记录,如何改成以下语句,则只删除一个表中的记录,如何才能删除两表中aucid等于请求uid的语句

if act="auc" then
sqldel="delete from auctions where aucid in (" & uid & ")"
elseif act="auc" then
sqldel="delete from msg where aucid in (" & uid & ")"
elseif act="ly" then
sqldel="delete from msg where msgid in ("& uid &")"
else
response.write"<script language=javascript>alert('数据删除失败!');history.back(-1);</script>"
response.end
end if

请朋友们看一下,先谢谢了

搜索更多相关主题的帖子: 表中 语句 数据 
2006-05-04 19:47



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-61867-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.416611 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved