Creating a Single-Statement Procedure : Procedure : Procedure Function MySQL TUTORIALS


MySQL TUTORIALS » Procedure Function » Procedure »

 

Creating a Single-Statement Procedure


mysql>
mysql>
mysql> create procedure myProc ()
    ->   SELECT id,first_name FROM employee;
Query OK, rows affected (0.00 sec)

mysql>
mysql> call myProc ();

mysql>
mysql> drop procedure myProc;
Query OK, rows affected (0.00 sec)



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

MySQL TUTORIALS

 Navioo Procedure Function
» Procedure