[firebase-br] Clausula IN
    Hélio Oliveira 
    hpensador em gmail.com
       
    Dom Maio  2 07:27:31 -03 2010
    
    
  
Bom dia Rodrigo!
No Firebird 2.5 creio não haja mais está limitação, em teste (estou 
testando atualmente o Firebird 2.5) em um sistema de FPG. Segue abaixo o 
comando SQL executado e o plan do IBExpert.
delete from folha_base x
where x.matricula in (select distinct w.matricula
                       from folha w
                       where w.cod_evento = 35)
   and x.sequencia = 1
Plan
PLAN SORT ((W INDEX (FK_FOLHA_FUNCIONARIO)))
PLAN (X NATURAL)
Adapted Plan
PLAN SORT ((W INDEX (FK_FOLHA_FUNCIONARIO))) PLAN (X NATURAL)
1981 record(s) was(were) deleted from FOLHA_BASE
------ Performance info ------
Prepare time = 0ms
Execute time = 78ms
Current memory = 11.100.024
Max memory = 12.355.888
Memory buffers = 2.048
Reads from disk to cache = 0
Writes from cache to disk = 2
Fetches from cache = 40.358
-- 
[]'s,
Hélio Oliveira
Analista de Sistemas
Delphi Developer
http://hpensador.blogspot.com/
    
    
Mais detalhes sobre a lista de discussão lista