Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/05/2009, 17:50
Minniek
 
Fecha de Ingreso: enero-2009
Mensajes: 178
Antigüedad: 15 años, 3 meses
Puntos: 2
invocar procedimiento en oracle 10g

Hola tengo problemas invocando procedimiento en oracle 10g no se q le pasa me da error en sql e incluso si coloco all_all_tables tambien me da error sql:

CREATE TABLE "BOLETO"
( "SEXO" VARCHAR2(1)
)
/

create or replace procedure "INSERTA_BOLETO"
(sexo boleto.sexo%type)
is
begin
if sexo<>('f') or sexo <>('m')then
raise_application_error(-2001,'que es esoooooo?');
else
insert into boleto values (sexo);
end if;
end "INSERTA_BOLETO";

CUANDO HAGO LA LLAMADA ME DA ERROR HE PROBADO MILES DE FORMAS Y NADA SIRVE:
execute "INSERTA_BOLETO"('m');
execute INSERTA_BOLETO('m');
call "INSERTA_BOLETO"('m');
call INSERTA_BOLETO('m');
"INSERTA_BOLETO"('m');
INSERTA_BOLETO('m');
select "INSERTA_BOLETO"('m') from dual;
select INSERTA_BOLETO('m') from dual;

gracias