what is the difrence between sql and pl/sql

Answer Posted / aditya

SQL Enter, Edit, Store & Retrieve by single command or
statement where as PL/SQL process all SQL statements one at
a time. With PL/SQL, an entire block of statements process
in a single command line.

SQL in a strucutred query language; where pl/sql is
procedures,function,variable,method all are present
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.
Actually this is the appropriate answer...

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I connect to mysql database?

500


How are mysql timestamps seen to a user?

511


How to delete a database from mysql server.

520


Explain the difference between delete and truncate.

541


How to store binary data in mysql?

527






How do I remove a user from mysql?

560


Is mysql free download?

480


How do I truncate all tables in mysql?

490


What is mysql and how it works?

462


Is mysql a server or database?

475


How to use case expression?

536


How to get nth highest salary from table in a mysql?

527


What is the maximum connection pool size?

510


What is datadir?

482


Explain the different types of constraints?

521