update时可以用where id in .....吗?
一个表单中有多个复选框,可以批量删除,修改,如:
[] 北京 ......
[] 上海 ......
[] 广州 .......
删除 修改
提交删除时:
checkboxes = request.form("checkbox")
sql = "delete from sqlfang where id in checkboxes"
可是提交修改时能用in吗?
sql = "update sqlfang set name='a' where idin checkboxes"