SQL is a data query and langauge manipulation. PL / SQL is a procedural programming language.
PL / SQL is the complete Turing language, with syntax for creating complex programs. It also has a large number of libraries that give it a wide range of capabilities. However, its primary use is undoubtedly the creation of stored procedures that include SQL statements for retrieving and manipulating data. Thus, PL / SQL is a superset of SQL.
Although in earlier versions of the database, the PL / SQL SQL engine lagged behind the database engine, so some SQL functions were not available in PL / SQL. Since 9i Oracle has gone crazy to keep both in step, and itβs quite difficult to find something that we can do in pure SQL, which we also cannot do in PL / SQL.
source share