当前位置: 首页 > 图文教程 > 网络编程 > ASP > ASP调用oracle存储过程

ASP
保护 XML Web 服务免受黑客攻击
开发BtoC电子商务系统(ASP.NET)
用asp.net实现的把本文推荐给好友功能
尝尝ASP.NET中的小甜饼
web.config一个中文解释
使用ASP.NET加密口令
在SQL Server中保存和输出图片
ASP 中健壮的页结构的异常处理
如何使你的机器运行ASP?
asp(Active Server Page)的语言特性
关于inc文件
IE4 的 模 式 对 话 框 设 计
亲密接触ASP.net(6)
亲密接触ASP.Net(7)
用ASP.Net写一个发送ICQ信息的程序
用ASP.Net编写的查询域名的程序
使用 ASP+ 列表绑定控件(上)
使用 ASP+ 列表绑定控件(中)
使用 ASP+ 列表绑定控件(下)
揭开ASP神秘面纱(1)

ASP调用oracle存储过程


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-03   浏览: 56 ::
收藏到网摘: n/a

 

<!--#include file="inc\public.asp"-->
<!--#include file="inc\conn.asp"-->

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>

</head>

<body>
<%
'-----------------------------------
dim sp_common
Set sp_common = Server.CreateObject("ADODB.Command")
 with sp_common     
  .ActiveConnection = conn 
  .CommandText = "cd_update_log"
  .Parameters.Append .CreateParameter("@inputremark", adVarChar, adParamInput,50,"联通.Ye")
  .Parameters.Append .CreateParameter("@msg", adInteger, adParamOutput)
 .execute
 end with
 
msg=sp_common("@msg")
'-----------------------------------
response.write "<hr>" & msg
response.end

If 1+1=3 then

'----------------------------------Table
 create table CD_BILL_LOG
 (
   BILL_ID      NUMBER,
   DEAL_EMP_ID  NUMBER,
   REACH_DATE   DATE,
   DONE_DATE    DATE,
   BILL_STATUS  VARCHAR2(10),
   DEAL_DEPT_ID NUMBER,
   SIGN         NUMBER,
   REMARK       VARCHAR2(50)
 )
 ;
'-----------------------proc
create or replace procedure
cd_update_log(inputremark varchar2,msg out float)
 as
 begin
 
   update cd_bill_log a
   set a.remark =inputremark   --to_char(sysdate,'mi:ss')
   where a.bill_id=45;
    msg:=1;
   commit;
end;

end if
%>

</body>
</html>