删除多条记录,SQL语句怎么写?where id= 怎么做呢 ?
一个表单,列出很多内容,选择多项要删除的内容!选择之后提交,地址如下:
假设地址:http://localhost/del.asp?id=1&id=3&id=6&id=7&id=8
这样写对不对?删除多条记录
<%
id=request.querystring("id")
sql="delete····where id=" & id
%>
如果是字符串呢?
假设地址:http://localhost/del.asp?name=apple01&name=apple02&name=apple03
<%
name=request.querystring("name")
sql="delete····where name='" & name & "'"
%>
麻烦各位帮我一下,如果可以,写一下简单语句给我学习!