请问asp高手,这段代码什么意思?
来源:百度知道 编辑:UC知道 时间:2024/05/23 10:45:21
function config(zd)
set rsnewsx = Server.CreateObject("ADODB.RecordSet")
rsnewsx.Open "select "&zd&" from [config]",conn,1,1
config=rsnewsx(""&zd&"")
rsnewsx.close
set rsnewsx=nothing
end function
请解释一下:
rsnewsx.Open "select "&zd&" from [config]",conn,1,1
config=rsnewsx(""&zd&"")
什么意思?用c#怎样改写?
set rsnewsx = Server.CreateObject("ADODB.RecordSet")
rsnewsx.Open "select "&zd&" from [config]",conn,1,1
config=rsnewsx(""&zd&"")
rsnewsx.close
set rsnewsx=nothing
end function
请解释一下:
rsnewsx.Open "select "&zd&" from [config]",conn,1,1
config=rsnewsx(""&zd&"")
什么意思?用c#怎样改写?
rsnewsx.Open "select "&zd&" from [config]",conn,1,1
打开表CONFIG,并且显示字段名为参数zd的值的所有记录
config=rsnewsx(""&zd&"")
把CONFIG表中字段名为参数zd的记录的值赋值给config。
如果只是这两句话的话,基本和C#
command.text="select "&zd&" from [config]"
command.connection=comm
commandtype=commadntype.text
command.exequery();
大致是这样 具体代码记不清了