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
