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.
By example (not all are PL/SQL):
Therefore,
ASis not always allowed whereISis, andISis not always allowed whereASis 🙂Just one of those quirks of the language, I think. Generally,
ISis more common, I think, except whereASis the only option (as in the SQL examples above). Most of the examples in the Oracle docs seem to useIS, and personally that’s my preference as it fits better semantically, in my opinion.References:
Oracle SQL Reference 11gR1
Oracle PL/SQL Reference 11gR1