Read about how to execute stored procedure in oracle, The latest news, videos, and discussion topics about how to execute stored procedure in oracle from alibabacloud.com
variables instead of placeholders in the form of "using Var1,var2,..."V_sql: = ' Select decode (Length (: v1), 10,:v2,:v3) from dual '; EXECUTE IMMEDIATE v_sql into V_start USING V_start,v_start | | ' 00:00:00 ', V_start;Results show:4. TestingEnter the parameterOut parameter5. The simplest way--End time stitching ' 00:00:00 ' SELECT DECODE (LENGTH (V_end), ten, V_end | | ' 00:00:00 ', v_end) into the v_end from DUAL;Related recommendations:
Novice in writing program, must be adventurousness, and must have patience, do not compromise, do not understand on the book, online search data, ask friends, resolutely carried out in the end.
Recently has been with the knowledge of the ASP in the groping forward, a run bumpy, since needless to say. Anyway
Establish a login system that requires the following purposes.
1, the user through the bean to authenticate and get the user information.
2, record user login information, such as user login
Label: ----Creating a stored procedure create or replace procedure Inserttest asCURSOR CS is
SelectID, name, CLA, addr, phone, tel, x, Y, shape, Objectid fromHotel_bak T2; Begin forCinchCS Loop BEGIN insert into hotel (ID, name, CLA, addr, phone, tel, x, Y, Shape, Objectid) Val UEs ((SelectMax (ID) +1 fromhotel), C.name, C.cla, C.addr, C.phone, C.tel, c.x, C. Y, C.shape, (SelectMax (Objectid) +1 from
, which can be set to point to a different result set at execution time. Using the REF CURSOR output parameter, you can pass the result set of an Oracle formatter back to the calling application. You can access the result set that REF Cursor points to by defining an output parameter for the OracleType.Cursor data type in the calling application.
Create or Replace package mf_pak_001 is Type t_cursor is REF CURSOR;
Oracle | Stored Procedure | example | implementation /Oracle execute in sample stored procedure
/Reference
$ Gconn = ocilogon ("test", "test ");
/* Ocidefinebypos example thies@digicol.de (980219 )*/
/Discrate and necode is out parameter, the rest are all is in the par
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:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.