sábado, 16 de junio de 2012

select object_type, object_name --esta consulta nos indica que procedimiento hemos creado
from user_objects
  where object_type='PROCEDURE' or
    object_type='FUNCTION';
   
    --Para eliminar un procedimiento/funcion
    drop procedure <procedure_name>;
    drop function <function_name>;

--------------------------------------------------------------------------------------------------------------------------create or replace function validaCliente (pNumCliente varchar2) ---Esta funcion sirve para validar al cliente
  return boolean
    is
        vNumCliente Cliente.numCliente%TYPE;
      begin
         select numCliente into vNumCliente
         from Cliente
         where numCliente=pNumCliente;
         return TRUE;
      Exception
         When no_data_found then
         return FALSE;
         end;

--------------------------------------------------------------------------------

2 comentarios:

  1. Your post is very interesting information about related topic is awesome. I was finding this type of information from long time. I think you should going on to make this type of blog.
    Thanks for this informative post , keep Sharing like this !

    ResponderEliminar
    Respuestas
    1. Thanks for your comment, I will continue uploading more information, so attentive. a Hug

      Eliminar