哪为朋友能帮我解释一下下面代码!

来源:百度知道 编辑:UC知道 时间:2024/05/19 03:04:12
<%
set cmdexample=server.createobject("adodb.command")
cmdexample.activeconnection=conn
cmdexample.commandtext="main1"
cmdexample.commandtype=4
cmdexample.parameters.append cmdexample.createparameter("@RETURN_VALUE",3,4,0)
set rs=cmdexample.execute
if rs.eof and rs.bof then
response.write "没有新闻"
else
k=0
for k = 1 to 10
%>
都是存储过程的,我想知道具体点的,包括里面的参数都什么作用,谢谢了

<%
set cmdexample=server.createobject("adodb.command") 'adocommand对象
cmdexample.activeconnection=conn 'command对象连接的conncetion对象
cmdexample.commandtext="main1" 'command对象的命令
cmdexample.commandtype=4 '命令类型为储存过程
cmdexample.parameters.append cmdexample.createparameter("@RETURN_VALUE",3,4,0) '创建一个Parameter对象并将其添加到Parameters集合中
set rs=cmdexample.execute '执行命令
if rs.eof and rs.bof then
response.write "没有新闻"
else
k=0
for k = 1 to 10
%> <!--也就知道这些了要详细的自己去找找command对象的属性和方法吧-->