You may chose to use one of the PL/SQL integrated development environments such as TOAD, PL/SQL Developer or Oracle’s new Raptor . For a new developer we recommend using SQL*Plus because it is simple and will keep you from confusing PL/SQL errors and the tool errors. You will find that the first thing a developer needs to do is understand the Oracle and PL/SQL error messages . Remember, a development tool can make error messages harder to understand.
The first step is to start SQL*Plus and connect to the database. In Windows, open a terminal window. In Linux/Unix go to the command line and ensure that the database environment is set. To start SQL*Plus just enter the “sqlplus” command. If the program is not found, make sure the ORACLE_HOME is set in the path.
SQL is a limited language that allows you to directly interact with the database. You can write queries (SELECT), manipulate objects (DDL) and data (DML) with SQL. However, SQL doesn't include all the things that normal programming languages have, such as loops and IF...THEN...ELSE statements.
PL/SQL is a normal programming language that includes all the features of most other programming languages. But, it has one thing that other programming languages don't have: the ability to easily integrate with SQL.
Some of the differences:
* SQL is executed one statement at a time. PL/SQL is executed as a block of code.
* SQL tells the database what to do (declarative), not how to do it. In contrast, PL/SQL tell the database how to do things (procedural).
* SQL is used to code queries, DML and DDL statements. PL/SQL is used to code program blocks, triggers, functions, procedures and packages.
* You can embed SQL in a PL/SQL program, but you cannot embed PL/SQL within a SQL statement.
For more details -
http://www.orafaq.com/wiki/PL/ SQL_FAQ#What_is_the_difference_betw een_SQL_and_PL.2FSQL.3F
Answered by
Nagendra
, an ibibo Master,
at
7:17 PM on July 17, 2008