I haven't really done anything with dynamic SQL yet. However, it looks like you are just declaring a string and tossing your SQL into it. Then using executing the stored procedure sp_executesql (which ...
PL/SQL stands for Procedural Language extension of SQL. PL/SQL is a combination of SQL along with the procedural features of programming languages. It was developed by Oracle Corporation in the early ...