Oracle development-calling Oracle stored procedure using ASP

Source: Internet
Author: User

Source: Network/Editor: getting started with programming: Unknown

<! -- # Include file = "incpublic. asp" -->
<! -- # Include file = "incconn. asp" -->
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">
<Title> </title>
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, "Unicom. Ye ")
. Parameters. append. createparameter ("@ MSG", adinteger, adparamoutput)
. Execute
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)
Update cd_bill_log
Set a. remark = inputremark -- to_char (sysdate, 'mi: ss ')
Where a. bill_id = 45;
MSG: = 1;
End if

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.