Creating a Single-Statement Procedure : Procedure : Procedure Function SQL / MySQL


SQL / MySQL » 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

SQL / MySQL

 Navioo Procedure Function
» Procedure