Does anyone know how I can create a stored procedure within mysql workbench? I would like to get to know and use them but how do I store the one(s) I create so that I can then call them? In workbench or within my php code would be better.
update thought I might share this link as it might come in handy to anyone viewing this
Stored Procedures in MySQL and PHP how to article
to add a stored procedure in Mysql workbench:
1) Click the triangle in the left of your database: you should see tables, views, and routines
2) Right click on routines -> Create procedure
You're done :)
Within the EER diagram:
Place a New Routine Group toolbar icon, and Group: Routines tab and Routine Group tab to edit the group or Routines tab to edit the actual routines.Alternatively, from the Model diagram, click the Add Group icon under Routine Groups heading then click the Add Routine under the Routines heading. 
Source: dev.mysql.com
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With