Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/06/2009, 08:23
Diegon
 
Fecha de Ingreso: febrero-2008
Ubicación: Bogotá_Colombia
Mensajes: 72
Antigüedad: 16 años, 2 meses
Puntos: 0
Errores con pl sql

BUNOS DIAS AMIGO TENGO El SIGUIOENTE SCRIPT

Código PHP:

create 
or replace
FUNCTION        getCantidadTotDes
    
(
      
art INT,
      
sol INT) RETURN INTEGER
  IS
  BEGIN
    
DECLARE
      
valorq INTEGER;
    
BEGIN
       SELECT SUM 
((i.gettotDes(ppq.pedido,art))
         
INTO valorq
         FROM sal
.soli_cir sc
      INNER JOIN sal
.pe_pet_qx ppq
           ON 
(ppq.peti      =sc.cod_peti)
        
WHERE sc.num_sol=sol;
      RETURN 
valorq;
    
END;
  
END
SALEN LOS SIGUIENETES ERRORES


Error(11,8): PL/SQL: SQL Statement ignored
Error(12,10): PL/SQL: ORA-00907: missing right parenthesis


gracias por adelnatado a todos los que me ayudan