最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
asp存储过程写法与实例
时间:2022-07-02 23:10:48 编辑:袖梨 来源:一聚教程网
'===========
'函数:储存过程
'功能:查询
'参数:储存过程参数集
'================
function dbstroce(query_sign,table,outerfield,condition,orderfield,strInsert,isorder)
set cmd = server.CreateObject("ADODB.Command")
cmd.commandText="p_Agents_query"
cmd.commandType=4
cmd.prepared = true
set cmd.ActiveConnection = conn
cmd.parameters("@query_sign")=query_sign
cmd.parameters("@table")=table
cmd.parameters("@outerfield")=outerfield
cmd.parameters("@condition")=condition
cmd.parameters("@orderfield")=orderfield
cmd.parameters("@strInsert")=strInsert
cmd.parameters("@strInsert")=strInsert
cmd.parameters("@isorder")=isorder
if query_sign=0 then
set rs=cmd.execute
else
cmd.execute
end if
set cmd = nothing
end function