What is the difference between anonymous block and named
blocks?
Answers were Sorted based on User's Feedback
Answer / santosh kumar
anonymous block cannot be stored in database. it start with
"Declare" keyword can also contain name but that will be
temporary block. it only exist in the oracle work area for
during execution time after execution it destroy from the
memory. it cannot be called for future use.
but named block exist in the database and can be reusable.
we can call it any time it also called pl/sql database objects.
like......
procedure (it will exist in the "user_source") dictionary
view.
function (it will exist in the "user_source") dictionary
view.
package (it will exist in the "user_source") dictionary
view.
trigger (it will exist in the "user_triggers") dictionary
view.
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / nagendra
anonymous block cannot be stored in database. it doesn't
contain name. it cannot be called for future use.
where as named block can be stored in database. it can be
named. it can be called for future use.
| Is This Answer Correct ? | 6 Yes | 1 No |
Answer / anil kumar jampana
1)anonymous block will store in os
where as named block will store in database
2)we can call named block but not anonymous
| Is This Answer Correct ? | 3 Yes | 1 No |
Do prepared statements prevent sql injection?
Is primary key is clustered index?
what is subquery? : Sql dba
Can we insert in sql function?
how to retrive only second row from table?
What is trigger and stored procedure in sql?
How to Declare Fixed Length String Value In PL SQL
Are ddl triggers fired for ddl statements within a pl/sql code executed using the dbms.sql package?
how can we take a backup of a mysql table and how can we restore it. ? : Sql dba
What is pivot in sql?
what are the properties and different types of sub-queries? : Sql dba
How to display all Friday's in a year with date?
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)