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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: comments on EXECUTE IMMEDIATE

RE: comments on EXECUTE IMMEDIATE

From: Stephane Paquette <stephane.paquette_at_standardlife.ca>
Date: Wed, 23 Jul 2003 14:27:29 -0400
Message-Id: <25998.339214@fatcity.com>


execute immediate IS dynamic sql, it is just a new simpler synthax.

SDW.WORLD:sys>set serveroutput on
SDW.WORLD:sys>declare
  2 v_count number;
  3 begin

  4     execute immediate 'select count(*) from dba_objects' into v_count;
  5     dbms_output.put_line ('Count:'||v_count);
  6 end;
  7 /
Count:3681

PL/SQL procedure successfully completed.

SDW.WORLD:sys>

Stephane Paquette
Administrateur de bases de donnees
Database Administrator
Standard Life
www.standardlife.ca
Tel. (514) 499-7999 7470 and (514) 925-7187 stephane.paquette_at_standardlife.ca <mailto:stephane.paquette_at_standardlife.ca>

-----Original Message-----

From: ml-errors_at_fatcity.com [mailto:ml-errors_at_fatcity.com]On Behalf Of Maryann Atkinson
Sent: Wednesday, July 23, 2003 2:59 PM
To: Multiple recipients of list ORACLE-L Subject: comments on EXECUTE IMMEDIATE

Does anyone have any examples on use of EXECUTE IMMEDIATE starting from small little ones?

Is EXECUTE IMMEDIATE more efficient than Dynamic SQL? It certainly appears simpler to syntax, but would it be wise to use it or prefer the stability of dynamic SQL?

thx
maa

--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Maryann Atkinson
  INET: maryann_30_at_yahoo.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services

---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Wed Jul 23 2003 - 13:27:29 CDT

Original text of this message

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