Hi,

1.Can I rollback after doing a truncate table (it seems to me that I can' t)
e.g.
       Execute Immediate  'Truncate Table '|| TablaNevTomb(i);

       Execute Immediate
          'Begin '||
            'Insert into '|| TablaNevTomb(i) ||' (Select * From 
X$_'||TablaNevTomb(i)||');'||
          'End;';

     Exception
       When others Then RollBack

2. Is there a way to use a command with more than one word in Pl/Sql 
without using it dynamically?

For example I can use "Truncate table" only with Execute immediate within a 
Pl/Sql block.

3. I have a statement in a package:

  Insert into A
     ( Select Col1 ,MyFunction(Col1)
         from B );

If the MyFunction function is made with "create or replace function" 
everything works perfectly,
but if the same function is declared within the package, I get the error 
message:
PLS-00231 function 'string' may not be used in SQL


Thank you for your help






Zsolt Csillag
Hungary

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Csillag Zsolt
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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).

Reply via email to