what is the difrence between sql and pl/sql

Answer Posted / dinesh joshi

1)SQL is executed one statement at a time. PL/SQL is
executed as a block of code.
2)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).
3)SQL is used to code queries, DML and DDL statements.
PL/SQL is used to code program blocks, triggers, functions,
procedures and packages.
4)You can embed SQL in a PL/SQL program, but you cannot
embed PL/SQL within a SQL statement.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is horizontally scalable?

702


How do I rename a table in mysql?

718


Does adding an index lock a table?

695


What, if a table has one column defined as TIMESTAMP?

740


What is database url for mysql?

645


How would you enter characters as hex numbers?

687


How do I view mysql logs?

687


What is mysql command line?

701


Where is mysql used?

754


How do I completely remove mysql from windows?

670


how to get only updated, deleted , inserted records after certain interval time in mysql with out using triggers...

2009


How do I copy a table in mysql?

685


What is InnoDB?

763


How to use 'mysql' to run sql statements?

746


How can you retrieve a particular number of records from a table?

682