asp对mssql数据库操作,可以删除,可以修改,但是无法增加数据,高手帮忙看一下,哪里不对了?
asp对mssql数据库操作,可以删除,可以修改,但是无法增加数据,高手帮忙看一下,哪里不对了?Setrs=Server.CreateObject("adodb.reco...
asp对mssql数据库操作,可以删除,可以修改,但是无法增加数据,高手帮忙看一下,哪里不对了?
Set rs = Server.CreateObject("adodb.recordset")
sql = "select * from yxw_Class"
rs.Open sql, conn, 1, 3
rs.addnew
rs("topid") = request.Form("topid")
rs("KeyWord") = request.Form("KeyWord")
rs("num") = request.Form("num")
rs.update
Call close_rs
Call close_conn
Call infohref("分类 添加成功", "sss.asp") 展开
Set rs = Server.CreateObject("adodb.recordset")
sql = "select * from yxw_Class"
rs.Open sql, conn, 1, 3
rs.addnew
rs("topid") = request.Form("topid")
rs("KeyWord") = request.Form("KeyWord")
rs("num") = request.Form("num")
rs.update
Call close_rs
Call close_conn
Call infohref("分类 添加成功", "sss.asp") 展开
2个回答
展开全部
Set rs = Server.CreateObject("adodb.recordset")
sql = "select * from yxw_Class"
rs.Open sql, conn, 1, 3
rs.addnew
rs("topid") = request.Form("topid")
rs("KeyWord") = request.Form("KeyWord")
rs("num") = request.Form("num")
rs.update
Call close_rs
Call close_conn
Call infohref("分类 添加成功", "sss.asp")
Set Rs = Server.CreateObject("ADODB.Recordset")
Sql = "Select * From yxw_Class"
Rs.Open Sql,conn,1,3
Rs.AddNew
rs("topid") = request.Form("topid")
rs("KeyWord") = request.Form("KeyWord")
rs("num") = request.Form("num")
Rs.Update
Rs.Close
Set Rs=Nothing
conn.close
set conn=nothing
sql = "select * from yxw_Class"
rs.Open sql, conn, 1, 3
rs.addnew
rs("topid") = request.Form("topid")
rs("KeyWord") = request.Form("KeyWord")
rs("num") = request.Form("num")
rs.update
Call close_rs
Call close_conn
Call infohref("分类 添加成功", "sss.asp")
Set Rs = Server.CreateObject("ADODB.Recordset")
Sql = "Select * From yxw_Class"
Rs.Open Sql,conn,1,3
Rs.AddNew
rs("topid") = request.Form("topid")
rs("KeyWord") = request.Form("KeyWord")
rs("num") = request.Form("num")
Rs.Update
Rs.Close
Set Rs=Nothing
conn.close
set conn=nothing
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询