建站常识

ASP SQL删除分类的同时删除对应的所有记录

发布时间 | 2024/6/1 22:23:33  点击 | 

sql="select * from table where name like '%"&查找的名字&"%'"

set rs=conn.execute(sql)

if not(rs.eof and rs.bof) then

do while not rs.eof

Userid=rs("ID")

sql1="delect from table where id="&Userid

conn.execute(sql1)

rs.movenext

loop

end if

相关信息