|
- Sub rstAdd()
- set rs=server.createobject("adodb.recordset")
- sql="select * from company"
- rs.open sql,conn,1,3
- End Sub
- Sub rstClose()
- rs.close
- set rs=nothing
- End Sub
- '*************示范*******
- Call rstAdd()
- rs.addnew
- rs("companyJC")=ccc
- rs.update
- response.write "数据添加成功"
- Call rstClose()
复制代码 |
|