热门文章
 
sql求两字符串相似度的自定
在 Access 中使用“存
ASP调用带参数存储过程
ASP与存储过程
实用的存储过程1
实用的存储过程2
SQL Server编写存储
SQL Server编写存储
在ASP存储过程的使用方法实
asp使用存储过程初步技巧
 推荐文章
 
asp使用存储过程初步技巧
ASP调用带参数存储过程
sql求两字符串相似度的自定
在 Access 中使用“存
ASP与存储过程
实用的存储过程1
实用的存储过程2
SQL Server编写存储
数据分页的存储过程
在ASP存储过程的使用方法实
存储过程入门到精通
asp调用orcle存储过程
存储过程介绍 和它在asp中
ASP和MSSQL存储过程的
系统存储过程sp_depen
asp:SQL存贮过程样板
 
你现在的位置:您现在的位置是: 中国ASP>>数据库>>存储过程
asp调用orcle存储过程

建立表:
SQL> create table CD_BILL_LOG
2 (
3 BILL_ID NUMBER,
4 DEAL_EMP_ID NUMBER,
5 REACH_DATE DATE,
6 DONE_DATE DATE,
7 BILL_STATUS VARCHAR2(10),
8 DEAL_DEPT_ID NUMBER,
9 SIGN NUMBER,
10 REMARK VARCHAR2(50)
11 )
12 ;

建立过程:


SQL> create or replace procedure
2 cd_update_log(inputremark varchar2,msg out float)
3 as
4 begin
5
6 update cd_bill_log a
7 set a.remark =inputremark --to_char(sysdate,'mi:ss')
8 where a.bill_id=45;
9 msg:=1;
10 commit;
11 end;

调用过程:

<%@ LANGUAGE="Javascript"%>
<%
var conn = Server.CreateObject("ADODB.Connection");
conn.Open("sczbo","sczb","sczb");
var sp_common= Server.CreateObject("ADODB.Command");
var rs = Server.CreateObject("ADODB.Recordset");
conn.CursorLocation =3;

sp_common.CommandText = "cd_update_log";
sp_common.CommandType = 4;

var para1=sp_common.CreateParameter("inputremark", 129,1,50,"联通");
sp_common.Parameters.Append(para1);
var para2=sp_common.CreateParameter("msg", 3, 2);
sp_common.Parameters.Append(para2);
sp_common.activeConnection=conn;
sp_common.execute;
var msg=sp_common("msg");
Response.write( msg);
Response.end;

%>


相关信息:

数据库查询语言sql(2)
数据库查询语言SQL(1)
sql求两字符串相似度的自定义函数
在 Access 中使用“存储过程”
ASP调用带参数存储过程
ASP与存储过程
实用的存储过程1
实用的存储过程2
SQL Server编写存储过程小工具

 

中国ASP技术 ASP.ORG.CN 版权所有 2004-2008