Log in
يك شنبه,۱۶ بهمن ماه ۱۳۹۰مطابق با
١٣ ربيع الاول ۱۴۳۳هجرى قمرى

SQLPlus Create Procedure
An example to Create a Procedure
SHOW ERRORS
CREATE OR REPLACE PROCEDURE Get_Customer (
– create date:
– create by:
– description:
i_ID IN CUSTOMERS.ID%TYPE,
o_NO OUT IN NUMBER,
o_MODE OUT CUSTOMERS.MODE%TYPE)
IS
TID COM_CUSTOMERS.CCUST_ID%TYPE;
BEGIN
SELECT TID, NO INTO t_ID, o_NO FROM CUSTOMERS WHERE ID = i_ID;
SELECT T.MODE INTO o_MODE FROM OTHER_TABLE T WHERE ID = t_ID;
EXCEPTION WHEN OTHERS THEN DECLARE error_code NUMBER := SQLCODE;
error_msg VARCHAR2 ( 300 ) := SQLERRM;
BEGIN RAISE_APPLICATION_ERROR ( – 20096, ‘SELECT of proc Get_Customer failed: ‘ || ‘(NO: ‘ || i_NO || ‘ ‘ || error_code || ‘ ‘ || error_msg || ‘)’ );
END;
END Get_Customer; /
–
Post your comment
Subpages
- SQLPlus Commands
- SQLPlus Security/Privileges
- Create a database link
- SQLPLus Query Tips
- SQLPlus Create Procedure
- SQLPlus Create Tigger
- Tora with Oracle
- How find out …
Archives:
- Mercurial & hg view
- jPortal wordpress theme
- WordPress Careers plugin
- Check For Email pattern
- WordPress ODLinks Plugin
- WordPress Classifieds Plugin
- Clean up the Ubuntu
- Persian philosophs and sciences
- » Highlights of Iran's history
- » Hosting & Service Provider
- » Spiele für Schulkinder
- » Korea Live TVs
- » Learning French
- » Schule Übungsblätter
- » LIVE-STREAM
- » حاج آقا سيد عباس دوستانى
- » Take a free course online.
- » Aktuelle Angebote
- » ایستگاه قطار دورتموند
- » Persian philosophs and sciences
Categories:
Links
- (IE)HTML - اديتور به فارسي و لاتين
- Online Graphic Plotter
- Online scientific calculator
- تقويم ساليانه
- تبديل کُدهای رايج
- تبدیل تاریخ شمسی به میلادی
- فارسی نويس
- تبديل خط فينگليش به فارسى





