Execute Immediate VS Dynamic SQL (DBMS_SQL)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eeriehunk
    New Member
    • Sep 2007
    • 55

    Execute Immediate VS Dynamic SQL (DBMS_SQL)

    Hi All,
    I was going through DBMS_SQL package when I tried to research on Dynamic SQL. I couldn't understand the necessity for this package since we can use EXECUTE IMMEDIATE to execute any DDL inside a PLSQL procedure. Why make things complicated using the PARSE procedure supplied with the DBMS_SQL package.
    Regards,
    Aj
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    DBMS_SQL is the predecessor of EXECUTE IMMEDIATE.

    that was used in the earlier versions not required if using 9i onwards.

    It is recommended to use EXECUTE IMMEDIATE in latest versions.

    Comment

    • OraMaster
      New Member
      • Aug 2009
      • 135

      #3
      This is better described here http://okjsp.pe.kr/seq/9789.

      Comment

      Working...