Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 6th, 2005, 12:34 AM
randyriegel randyriegel is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Steubenville, OH
Posts: 65 randyriegel User rank is Private First Class (20 - 50 Reputation Level)randyriegel User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 30 m 42 sec
Reputation Power: 5
Send a message via ICQ to randyriegel Send a message via AIM to randyriegel
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

Reply With Quote
  #2  
Old May 6th, 2005, 11:27 AM
jim mcnamara jim mcnamara is offline
......@.........
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jun 2004
Posts: 1,308 jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 5 h 2 m 57 sec
Reputation Power: 48
Correct syntax is:

CREATE OR REPLACE AS

PROCEDURE xxx IS

CURSOR xxx IS

FUNCTION xxxx RETURN xxx IS

Reply With Quote
  #3  
Old May 6th, 2005, 04:28 PM
paulh1983 paulh1983 is online now
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Dec 2004
Posts: 1,241 paulh1983 User rank is Sergeant (500 - 2000 Reputation Level)paulh1983 User rank is Sergeant (500 - 2000 Reputation Level)paulh1983 User rank is Sergeant (500 - 2000 Reputation Level)paulh1983 User rank is Sergeant (500 - 2000 Reputation Level)paulh1983 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 13 h 3 m 39 sec
Reputation Power: 17
however it doesnt matter if u use IS or AS!

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > IS or AS?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway