Learning SQL is easy, as its language constructs are almost English like statements, which makes operations like selecting, deleting, updating,altering etc extremely easy. It also allows embedding other language scripts to increase the functionality of querying.
Now, what is PL-SQL ?
As you may have noticed from the preceding section, SQL statements are very concise and powerful, but do not do more as a group than they do individually. Generally speaking, SQL statements operate independently, having little effect on one another. This is of limited use for writing programs, where you must create a body of code that is going to vary its behavior according to the data and to user or other input.
To develop applications with SQL, you generally have to either interface it to a standard programming language such as C, or extend it so that it becomes a useful programming language in itself. Oracle supports both approaches, but the latter approach has many advantages that are relevant to the Web, and is therefore the approach that the Oracle WebServer takes.
PL/SQL, then, is an application-development language that is a superset of SQL, supplementing it with standard programming-language features that include the following:
- block (modular) structure
- flow-control statements and loops
- variables, constants, and types
- structured data
- customized error handling
Another feature of PL/SQL is that it allows you to store compiled code directly in the database. This enables any number of applications or users to share the same functions and procedures. In fact, once a given block of code is loaded into memory, any number of users can use the same copy of it simultaneously (although behavior is as though each user had her own copy), which is useful for the Oracle WebServer. PL/SQL also enables you to define triggers, which are subprograms that the database executes automatically in response to specified events.
Below, we have provided you a few Ebooks which can help you learn SQL and PL/SQL Easily.
Books for Download:
Sams Teach Yourself SQL in 21 Days
-------------------------------------------------------
Oracle Database 11G
SQL
---------------------------------------------
SQL for Dummies
------------------------------------------------
Oracle PL- SQL
-------------------------------------------------------------
Beginning PL/SQL
From Novice to Professional
Donald Bates
---------------------------------------------------------------------