Ver Mensaje Individual
  #2 (permalink)  
Antiguo 22/10/2009, 08:01
Avatar de huesos52
huesos52
Colaborador
 
Fecha de Ingreso: febrero-2009
Ubicación: Manizales - Colombia
Mensajes: 5.980
Antigüedad: 16 años
Puntos: 360
Respuesta: llamar Store procedure

Código sql:
Ver original
  1. mysql> delimiter $$
  2. mysql> CREATE PROCEDURE ejemplo()
  3.     ->  BEGIN
  4.     ->   SELECT *FROM prueba;
  5.     -> END
  6.     ->  $$
  7. Query OK, 0 ROWS affected (0.00 sec)
  8.  
  9. mysql> delimiter ;
  10. mysql> CALL ejemplo();
  11. +---------+
  12. | nombres |
  13. +---------+
  14. | daniel  |
  15. | otro    |
  16. +---------+
  17. 2 ROWS IN SET (0.00 sec)
  18.  
  19. Query OK, 0 ROWS affected (0.00 sec)
__________________
Without data, You are another person with an opinion.
W. Edwads Deming