Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 793329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T22:08:04+00:00 2026-05-14T22:08:04+00:00

I thought that oracle treats both is and as same for functions and procedures.I

  • 0

I thought that oracle treats both “is” and “as” same for functions and procedures.I tried googling with “pl/sql is vs as” and got the following link which says both are the same.

IS vs AS keywords for PL/SQL Oracle Function or Procedure Creation

But I found http://www.adp-gmbh.ch/ora/plsql/coll/declaration.html#index_by which seems to indicate there is a difference. Could somebody (list/point me to a link) the other contexts where using “is/as” makes a difference?.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T22:08:05+00:00Added an answer on May 14, 2026 at 10:08 pm

    By example (not all are PL/SQL):

    [CREATE] PROCEDURE x IS|AS ...
    [CREATE] FUNCTION x IS|AS ...
    CREATE PACKAGE [BODY] x IS|AS ...
    CREATE TYPE [BODY] x IS|AS ...
    
    CURSOR x IS ...
    TYPE x IS ...
    SUBTYPE x IS ...
    
    CREATE TABLE x AS subquery
    SELECT x AS "y" FROM z AS "w"
    WITH x AS (SELECT ...
    

    Therefore, AS is not always allowed where IS is, and IS is not always allowed where AS is 🙂

    Just one of those quirks of the language, I think. Generally, IS is more common, I think, except where AS is the only option (as in the SQL examples above). Most of the examples in the Oracle docs seem to use IS, and personally that’s my preference as it fits better semantically, in my opinion.

    References:

    Oracle SQL Reference 11gR1

    Oracle PL/SQL Reference 11gR1

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I found out that Oracle Database 10g and 11g treat the following PL/SQL block
I thought that calling BeginInvoke more than once on the same delegate instance would
I thought that in principle Haskell's type system would forbid calls to impure functions
I have a schema extraction tool for SQL & Oracle which then tries to
Calling all Oracle heads, I've got a weird problem with a sql query... Running
I have a web service (JAX-RS/Spring) that generates SQL queries which run against a
I thought that by convention, only methods with an exclamation mark altered the object.
I thought that a 32-bit process could use at most 2GB RAM, since half
I thought that a delegate instance was interchangeable with a function instance. Take the
I thought that by default my Regex would exhibit the greedy behavior that I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.