保持数据库记录集不变
我在asp里,用如下语句打开了一个数据库记录集
sqlString="Select * from PriceTemplate where PmodelID="&PmodelID
Rs.Open sqlString,Conn,1,1
然后我对这个PriceTemplate表单进行了更改
sqlInsert="Update PriceTemplate set "
sqlInsert=sqlInsert & "StartDate='" & StartDate & "',"
sqlInsert=sqlInsert & "EndDate='" & EndDate
Conn.Execute sqlInsert
我发现原先已经打开的记录集 Rs 内容现在已经改变了! 其数据变成了我更改数据库表单之后的数据!我希望 Rs 记录集保持原来打开时的内容,应该怎么做到呢?