Difference between use of IS and AS while creating a Package or Procedure

Hi,
Had an interview in one of the company.
They asked me this, "What is the difference between using IS and AS while creating Package or Stored Procedure ?".
I checked creating package with same IS and AS, but there is no issues.
Kindly clarify me on this.
Lots of thanks in advance.
Regards,
Shiva

>
Had an interview in one of the company.
They asked me this, "What is the difference between using IS and AS while creating Package or Stored Procedure ?".
>
Quite frankly my first response to them would be: why do you even care?
That would be quickly followed by: do you have any meaningful questions you would like to ask? Perhaps something that might actually be relevant to what you do here?
I personally don't care if someone has memorized the syntax required to create DDL/DML. I care whether they know how and when to use it.
Check the docs for the syntax diagram and from at least 9i on it will be similar to this from 9i
http://docs.oracle.com/cd/B10501_01/appdev.920/a96624/08_subs.htm
>
A procedure is a subprogram that performs a specific action. You write procedures using the syntax:
[CREATE [OR REPLACE]]
PROCEDURE procedure_name[(parameter[, parameter]...)]
[AUTHID {DEFINER | CURRENT_USER}] {IS | AS}
[PRAGMA AUTONOMOUS_TRANSACTION;]
[local declarations]
BEGIN
executable statements
[EXCEPTION
exception handlers]
END [name];
>
Here is the link for 11g
http://docs.oracle.com/cd/B28359_01/appdev.111/b28370/create_procedure.htm
Note that the syntax for some objects requires one or the other and will not accept both.
>
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 ...

Similar Messages

  • Difference between using new Date() and new Date(System.currentTimeMillis()

    Hi All,
    I have seen many open source api's where they are updating dates with the following code
    new Date(System.currentTimeMillis())
    when i print the new Date() it prints the same
    what is the difference between using new Date() and new Date(System.currentTimeMillis()) ??
    Thanks,
    J.Kathir

    when i print the new Date() it prints the same
    It does because of backward compatability. This constructor exists in version 1.3.1 but not in newer versions.Really ? Please point me to where you read that.
    API doc 1.5 : new Date() (still there, not even deprecated)
    A quick look at the code for this constructor:    /**
         * Allocates a <code>Date</code> object and initializes it so that
         * it represents the time at which it was allocated, measured to the
         * nearest millisecond.
         * @see     java.lang.System#currentTimeMillis()
        public Date() {
            this(System.currentTimeMillis());
        }

  • Difference between using history data and do not

    hi,
    I'm Tran, I come from VietNam.
    I've just learned LabView, I dont know the difference between using history data ( propety note of waveform chart ) and do not.
    please help me. And give me an example in labview or give me some document of this problem!!
    Tran
    thanks!!!

    aloalo wrote:
    I dont know the difference between using history data ( propety note of waveform chart ) and do not.
    Your question isn't clear, but I would like to say that, I've many times used this particular property node for clear the data (graph) from the chart.
    I am not allergic to Kudos, in fact I love Kudos.
     Make your LabVIEW experience more CONVENIENT.
    Attachments:
    Example - Using HISTORY PN [LV 80].vi ‏16 KB

  • Difference between P.O.date and P.O.created date

    Hi,
      Could you tell me difference between purchaseing doucment date and purchase order creaed date.
        Because some time in my org. po created after GR means in past date. So there is difference between
        po date and po created date. where this po created date is maintained in purchase order
               Thanks and Regards
                      Anil

    Dear Anil,
    Please check table EKKO with ta SE11.
    Created Date => EKKO-AEDAT
    Date on which the record was created
    Document date => EKKO-BEDAT
    Date on which the purchasing document was created
    EKKO-AEDAT = Date on which the record was created
    and also "Created By" also recorded automatically
    by system.
    Document date or EKKO-BEDAT normally default as
    today when you create the PO via ME21N. This field
    appear at top right of the screen. However this date
    can be change to any date that required.
    Thanks
    Loke Foong

  • Difference between used disk space and folder space

    My startup harddrive (an SSD) info gives that 88 GB are used. If I open it in OS X and look at info for all the folders in it, their summed used space is 24GB. Thus 64 GB are used to unknown purpose and cannot be used.
    This problem seems to appear from using migration assistant to transfer from my old mac to a slightly newer. Both running Yosemite 10.10.1. I had to shutdown the migration because the computers seemed so lose contact with each other and the end of the migration seemed to go on for ever.

    Try re-indexing Spotlight.
    Spotlight – Re-index

  • Difference between using IP unnumbered and using IP's

    I have a G2 router with the sm-700 for remote site and an appliance for the date center.
    I followed the quick config guide and have it all working. This is using IP's on the interface SM1/0. for the router SM
    Then I wanted to try it with IP unnumbered on interface SM1/0, cant get it to work.
    WCCP packets are not increasing when I run wccp statistics on the device.
    the router config looked like this;
    int g0/0
    ip address 10.1.1.1 255.255.255.0
    int sm1/0
    ip unnumbered g0/0
    service-module ip address 10.1.1.240 255.255.255.0
    service-module ip default-gateway 10.1.1.1
    ip route 10.1.1.1 255.255.255.255 SM1/0
    does this look right?

    This statement does not look correct to me:
    ip route 10.1.1.1 255.255.255.255 SM1/0
    You need to put a route towards SM IP in this statement, that is:
    ip route 10.1.1.240 255.255.255.255 SM1/0
    See http://www.cisco.com/en/US/partner/docs/routers/access/interfaces/software/feature/guide/ism-sm-sre.html#wp1056674 for example.
    HTH, Amir

  • Difference Between Using MVC And SwingUtilities For GUI Component Update

    Hi Guys,
    What are the difference of using the MVC (Model View Controler) pattern to update GUI and using the SwingUtilities of doing the same job?
    Are there any big differences or shortcomings of any?
    Thanks.

    kap wrote:
    Hi Guys,
    What are the difference of using the MVC (Model View Controler) pattern to update GUI and using the SwingUtilities of doing the same job?
    Are there any big differences or shortcomings of any?
    Thanks.Your question is akin to asking, "What's the difference between using a car to get somewhere versus stepping on the gas pedal to do the same job?"
    The use of SwingUtilities to update the "view" only pertains to updating components in a thread-safe manner, it has nothing to do with MVC. MVC would govern when the view gets updated (i.e. after the model changes), while SwingUtilties would be used to specify how the view gets updated.

  • Difference between Using and Changing

    hi,
    while defining subroutines, what is the exact difference between Using and Changing?
    when we pass by reference we can use both and while passing using value we can use both + Value (VAR).
    Then what is the exact difference between two?
    Also, what is formal parameter?q
    Moderator message - Please do not ask or answer basic questions - thread locked
    Edited by: Rob Burbank on Dec 14, 2009 3:31 PM

    Hi C`hinmay,
    When a subroutine is called with "USING" you can make use of the value inside your subroutine but you cannot change the value. With CHANGING you can CHANGE the value too. Formal parameter is the PARAMETER NAME used while defining the interface of a Subroutine.
    Regards,
    Ravi.

  • Difference between using app server connection pooling and using the driver

    Hi all,
    How to get connection pooling with out application server and tomcat also?
    What is the difference between using app server connection pooling and using the driver supported connection pooling?
    Regards,
    Murali

    maybe the performance of App server pool is better than the JDBC pool,
    for you don't know wether the implementation of the JDBC interface is good or bad.

  • What's the difference between using a connection pool and a datasource

    Howdy. I figure this is a newbie question, but I can't seem to find an
    answer.
    In the docs at bea, the datasource docs say
    "DataSource objects provide a way for JDBC clients to obtain a DBMS
    connection. A DataSource is an interface between the client program and the
    connection pool. Each data source requires a separate DataSource object,
    which may be implemented as a DataSource class that supports either
    connection pooling or distributed transactions."
    In there it says the datasource uses the connection pool, but other than
    that, what is the difference between a connection pool and a datasource?

    Thanks for the info. I think it makes some sense. But it's a bit greek.
    I'm sure it'll make more sense the more I work with it. Thanks.
    "Chuck Nelson" <[email protected]> wrote in message
    news:3dcac1f5$[email protected]..
    >
    Peter,
    Here is a more formal definition of a DataSource from the Sun site
    "A factory for connections to the physical data source that thisDataSource object
    represents. An alternative to the DriverManager facility, a DataSourceobject
    is the preferred means of getting a connection. An object that implementsthe
    DataSource interface will typically be registered with a naming servicebased
    on the JavaTM Naming and Directory (JNDI) API.
    The DataSource interface is implemented by a driver vendor. There arethree types
    of implementations:
    Basic implementation -- produces a standard Connection object
    Connection pooling implementation -- produces a Connection object thatwill automatically
    participate in connection pooling. This implementation works with amiddle-tier
    connection pooling manager.
    Distributed transaction implementation -- produces a Connection objectthat may
    be used for distributed transactions and almost always participates inconnection
    pooling. This implementation works with a middle-tier transaction managerand
    almost always with a connection pooling manager.
    Does that help clarify the distinction?
    Chuck Nelson
    DRE
    BEA Technical Support

  • What's the difference between using and 802.11a and 5GHz only?

    What's the difference between using "802.11n (802.11a compatible)" and "802.11n only (5GHz)" modes on the Airport Extreme?

    802.11a gives you 802.11g speeds but using 5GHz (54mbps
    802.11n gives you 144Mbps (600 peak) at 2.4GHz or 5GHz

  • Differences between using Data Pump to back up database and using RMAN ?

    what are differences between using Data Pump to back up database and using RMAN ? what is CONS and PROS ?
    Thanks

    Search for Database backup in
    http://docs.oracle.com/cd/B28359_01/server.111/b28318/backrec.htm#i1007289
    In short
    RMAN -> Physical backup.(copies of physical database files)
    Datapump -> Logical backup.(logical data such as tables,procedures)
    Docs for RMAN--
    http://docs.oracle.com/cd/B28359_01/backup.111/b28270/rcmcncpt.htm#
    Docs for Datapump
    http://docs.oracle.com/cd/B19306_01/server.102/b14215/dp_overview.htm
    Edited by: Sunny kichloo on Jul 5, 2012 6:55 AM

  • Difference between use of decision table and if/then in business rules

    Hello ,
    Could some one please explain me difference between use of decision table and if/then in business rules in short.
    - Shirish

    Hi,
    They are equivalent, pretty much what you can do with a decision table you can also do with if/then...
    However, decision tables provide automated features that can reduce the number of required rules, as compared to the if/then rules (this is called rule coalescing).
    Have a look on this document... Search for 5.1.1 What is a Decision Table?
    http://docs.oracle.com/cd/E23943_01/user.1111/e10228/decision.htm#CJHFIAHG
    Cheers,
    Vlad

  • Difference between using FM and class in alv

    does anyone know what's the main difference between using FM to create alv  and using class to create alv?
    in what condition we usually use FM or class?

    using FM  we can create Classical and Interactive ALV Reports.
    The classes are used to create the ALV Reports with OOPS concept.
    Check this for basic concepts of OOPS
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b6cae890-0201-0010-ef8b-f970a9c41d47
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1591ec90-0201-0010-3ba8-cdcd500b17cf
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20to%20display%20data%20in%20alv%20grid%20using%20object%20oriented%20programming.doc
    Tabstrip
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/022ba607-0301-0010-e382-fdedca553f5f
    Editable ALV
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ec31e990-0201-0010-f4b6-c02d876ce033
    Tree
    http://www.sapdevelopment.co.uk/reporting/alv/alvtree/alvtree_usrint.htm
    General Tutorial for OOPS
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
    Reward Points if useful

  • Are there any differences between using Adobe Illustrator on a MAC and on a PC?

    Hello,
    I'm about go enroll in a class specialized for teaching Adobe Illustrator in order to be able to use the program at work.  The company that I work at uses Macintosh computers to deal with clerical work and everything, so I would like to know if there are any differences between using Adobe Ilustrator on a MAC and on a PC.  The school that offers training teaches two types of classes, where one uses Illustrator on a MAC, and the other one on a PC.  The PC class is able to have an earlier start date, which is why I'm sort of leaning towards choosing that class as I need to be able to use the software as soon as possible, but if there are main differences between the interface that will affect my knowledge of using Illustrator on a MAC after I take the class with Windows systems, then I will most likely be waiting for the class teaching in MAC systems.
    Thanks in advance for the help!
    Oh and another suggestion- should I take the Illustrator class in CS6 or CS5?

    Reading through the CS5 vs CS6 performance thread, the Mac version seems to have worse performance than Windows version.  From a starter's perspective the differences would most likely never be realized.  It will take some time to see differences between even CS5 and CS6 other than the visual aspect of course.
    Definitely take the CS6 versionso you can say you have it.  CS5 is my preferred version, CS6 is garbage with the bugs it has for the type of work I use it for.

Maybe you are looking for

  • How to set/get the values thru Wedbynpro coding for User mapping fields

    Hi All In system object we have the user mapping fields like District,city,plant,Salesmanager. now we want to set/get the values of these usermapping fields of system object thru webdynpro coding... if anybody have sample codes of the same then it wo

  • Playstation 3 nat problems fix BT hub

    The problem is with online gaming on the ps3 where the nat is set to "moderate" rather than "open". First access you hub settings by typing in 192.168.1.254 then settings/advanced settings/application sharing now with your ps3 turned on select playst

  • Dynamic El expression evaluation

    Hello, I have a bean which returns me map of key-value pairs ( String,String) . In my jsff, I need to access the map's value based on key which is a a dynamic El expression <af:iterator id="i1" value="#{bindings.leaderBoardEntities.collectionModel}"

  • Problem with newly installed JDK1.3.1

    hello people, I have just installed JDK1.3.1_01 version. My O/S is Windows 98 /Nt compatible. Somehow the permanent path setting instruction of Windows ME worked for me,have succesfully set the path at autoexec.bat file. I have written my source code

  • Installing Windows 7 on the Satellite M100

    I have the Satellite M100-JG2 (PSMA0C-JG200E). I would like to install Windows 7. The Toshiba does not list the M100 as compatible. The Microsoft Windows 7 Upgrade Advisor does point to some issues, but I do not know how easy it is to overcome them.