asp修改语句如何保存中文?

来源:百度知道 编辑:UC知道 时间:2024/05/17 22:11:26
<%set rs1=server.createobject("adodb.recordset")
rs1.open "select*from huie where id="&request("id"),conn,1,3
rs1("tion")=6
rs1("con1")="取消操作"
rs1.update
rs1.Close
set rs1=nothing%>
我只是想修改
原来rs1("tion")=6 是=5的
而这句只是想记录说明情况,非得要中文默认值rs1("con1")="取消操作"

加一句:rs1.addnew

<%set rs1=server.createobject("adodb.recordset")
rs1.open "select*from huie where id="&request("id"),conn,1,3
rs1.addnew
rs1("tion")=6
rs1("con1")="取消操作"
rs1.update
rs1.Close
set rs1=nothing%>

<%set rs1=server.createobject("adodb.recordset")
rs1.open "select * from huie where id="&request("id"),conn,1,3
rs1("tion")=6
rs1("con1")="取消操作"
rs1.update
rs1.Close
set rs1=nothing%
你检查下,,数据库CON1字段是不是字符型,,,类型一定要注意。。。
楼上两个回答真的,,不知道怎么说你们。。。