做校园招聘要注意什么:asp中的删除语句
来源:百度文库 编辑:查人人中国名人网 时间:2024/05/09 15:38:01
好久没用asp了,好多都忘记了。
三句删除语句都说我错了
"delete guest where idd = "&idd&""
"delete guest where idd = '"&idd&"'"
"delete guest where idd = &idd&"
其中idd在数据库中是自动编号的数据类型,数字型的在where语句中该怎么使用啊
三句删除语句都说我错了
"delete guest where idd = "&idd&""
"delete guest where idd = '"&idd&"'"
"delete guest where idd = &idd&"
其中idd在数据库中是自动编号的数据类型,数字型的在where语句中该怎么使用啊
对 在SQL中可以省略“from ”不写,但我在ASP中,只要不写FORM就出错。
另外"idd" & idd & ""
事实上后面的 & "" 就等于什么也没加,不如直接写成
"delete from guest where idd="&idd
等效的。
应该是
"delete from guest where idd="&idd