Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Re: native dynamic sql

Re: native dynamic sql

From: Sybrand Bakker <gooiditweg_at_sybrandb.demon.nl>
Date: Mon, 29 Sep 2003 19:30:50 +0200
Message-ID: <61rgnvsk49vm6au31g5evr9n3ahbq8auq3@4ax.com>

On 29 Sep 2003 17:17:24 GMT, odba1961_at_aol.com (Odba1961) wrote:

>Can someone please tell me how to call the following procedure.
>Say I wanted to get rid of a table called dummy using the following procedure,
>how would I be able to do it? Thanks
>
>create or replace procedure DropTable (p_Table in varchar2) as
>
> v_SQLString varchar2(100);
>
>BEGIN
>
> v_SQLString := 'DROP TABLE '||p_Table;
>
>EXECUTE IMMEDIATE V_SQLSTRING;
>
>END DropTable;

Just call it like you call any other procedure, which you can look up in your manual.

Sybrand Bakker, Senior Oracle DBA

To reply remove -verwijderdit from my e-mail address Received on Mon Sep 29 2003 - 12:30:50 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US