what is the difernece between named and anonymous pl/sql
blocks??
Answers were Sorted based on User's Feedback
Anonymous block those pl/sql blocks which are not stored in
your DB as an objects, whereas named pl/sql blocks are
those blocks which are stored in DB as an objects.Due to
storage in DB, these named pl/sql blocks can be called from
another named or anonymous blocks, or from any form also...
| Is This Answer Correct ? | 34 Yes | 2 No |
Answer / purushotham
Named pl/sql blocks are nothing but procedures.
procedures are compiled and stored in the database and
a user can call the procedure when required.
whereas anonymous are unnamed pl/sql blocks that will be
available for the time that is executed and it will not the
stored in the Database.
| Is This Answer Correct ? | 8 Yes | 1 No |
Answer / dev
YOU CAN NOT PASS PARAMETERS IN ANONYMOUS BLOCK
WHERE AS YOU CAN PASS IT IN NAMED PLSQL BLOCK.
YOU CAN CALL NAMED BLOCK FROM ANY DB(USING DB LINK)
| Is This Answer Correct ? | 8 Yes | 2 No |
Answer / mk
the purpose of an anonymous block is to write a one time
code e.g. you can write statements using SQL PLus editor and
accomplish database changes and do stuff which you can also
do by creating a procedure
| Is This Answer Correct ? | 4 Yes | 3 No |
Answer / amarnath
Thanks Dev.If any use ful stuff pls forword to me my id is
amar.rk359@gmail.com
| Is This Answer Correct ? | 1 Yes | 2 No |
Answer / amarnath
Yes, above and r correct, here one point to observe evry
one, what is the important of annonimous block, y oracle
provide us.
is any one provide correct ans for this??
| Is This Answer Correct ? | 3 Yes | 5 No |
Answer / debi
annonymous blocks are the blocks of code executed on the
client server where as the named block such as(stored
procedure and functions) are the block of code executed on
the database server.so once the code is executed on the
server so no need to compile it again when the user wants
to run it again.So the program execution is faster in case
of executing the named block.
| Is This Answer Correct ? | 1 Yes | 3 No |
how to connect oracle in unix prompt?
How do I view tables in mysql?
Table 1: col1 Timestamp ---------------- 01-mar-2012 11:12:46 Table 2: col2 Timestamp -------------------- 01-mar-2012 11:12:10 01-mar-2012 11:11:23 Write a query to display a row with table2 col2 value less than tabl1 col1 value. Maximum timestamp value previous to table1 col1 value. Display a result as: Col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10
What are the different types of joins in sql?
Can we perform dml in function?
Why partition by is used in sql?
Is a table valued function object?
Can we use SQL%ISOPEN in implicit cursors? Does this attribute works properly in Implicit Curosors?
what is the difference between cursor FETCH and FOR LOOP ?
3 Answers CG-VAK, Tech Mahindra,
HOW TO TUNE ORACLE SQL QUERIES GIVE ME STEP BY SREP
Can we use insert statement in function?
what is a foreign key ? : Sql dba
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)