DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: Use of DDL Statement within PL/SQL Block

  1. #1
    Join Date
    Sep 2000
    Location
    Calcutta / Ahmedabad, India
    Posts
    137

    Angry

    can Data Definition Language be used within a PL/SQL block or to say within the Begin/End of a procedure.

    The Idea is to drop & create certain tables from within a procedure.
    Suvashish

  2. #2
    Join Date
    Jul 2000
    Location
    india
    Posts
    213
    hi
    yes u can use DDL in or within the PL/SQL block
    by using the PLSQL package named DBMS_SQL
    best luck
    pras

  3. #3
    Join Date
    Jul 2000
    Posts
    296
    In 7 you have to use the package DBMS_SQL.
    In 8.0 for simple DDL you can use procedure DBMS_UTILITY.EXEC_DDL_STATEMENT
    In 8i you can use native dynamic SQL, with EXECUTE IMEMDIATE statement.

  4. #4
    Join Date
    Jan 2001
    Posts
    2

    Thumbs up

    Read on EXECUTE IMMEDIATE statement in PL/SQL. You should be able to execute DDL statements.

    Cheers

    Rizwan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width