|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
IS or AS?
When creating stored procedures and functions, is there a difference between using IS and AS?
Example: Code:
create or replace package body banking is procedure new_acct ( acno IN NUMBER, name IN varchar) is begin Code:
create or replace procedure newPart(
pno IN OUT char,
thePrice IN OUT NUMBER,
part_description IN varchar,
quantity_on_hand IN OUT integer,
reorder IN OUT integer
)
as
newPno CHAR(8);
quan integer := 0;
BEGIN
These are two examples I've seen. Just wondering Randy |
|
#2
|
|||
|
|||
|
Correct syntax is:
CREATE OR REPLACE AS PROCEDURE xxx IS CURSOR xxx IS FUNCTION xxxx RETURN xxx IS |
|
#3
|
|||
|
|||
|
however it doesnt matter if u use IS or AS!
|
![]() |
| Viewing: Dev Shed Forums > Databases > Oracle Development > IS or AS? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|