asp中rs.addnew与rs.update更新数据库的方法

rs.addnew

'增加一条新的空的数据记录
rs("rs1")="添加的数据"
rs.update

'在空记录中增加了内容
rs.close
set rs=nothing

'对已有数据进行修改

rs("rs1")="修改后的数据"
rs.update
rs.close
set rs=nothing
==========================

rs.addnew的asp用法等于数据库语言:insert into

rs.update的asp用法等于数据库语言:update

版权声明:本文为博主原创文章,未经博主允许不得转载。

原文地址:https://www.cnblogs.com/shipeng22022/p/4614041.html