Home arrow MySQL arrow Page 4 - A DIY Approach to Stored Procedures in MySQL

Alter Procedure and Conclusion - MySQL

If you have avoided using MySQL in the past due to its lack of support for stored procedures, here’s good news. The latest developer release of MySQL (MySQL 5.0) supports stored procedures. Drum roll, please! If you want to jog your memory before you begin to create those cretins or want to know more about them, read on. In this article, we'll learn what stored procedures are and create our first stored procedure in MySQL and learn some useful commands while we're at it.

TABLE OF CONTENTS:
  1. A DIY Approach to Stored Procedures in MySQL
  2. Create a Stored Procedure
  3. Calling and Dropping a Procedure
  4. Alter Procedure and Conclusion
By: Subha Subramanian
Rating: starstarstarstarstar / 92
August 31, 2004

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement

Alter procedure

The alter procedure statement may be used to change the name of a stored procedure or change its other characteristics such as comments or security associated with it.

mysql> ALTER PROCEDURE PARTPRICE NAME partprice;
Query OK, 0 rows affected (0.00 sec)

Conclusion

There –- now you know  how to create a stored procedure -- you are only limited by your imagination and the MySQL documentation. However, stored procedures in MySQL are still young and in the alpha stage.  So, don’t be surprised if you come across bugs; after all, this is only a sneak preview. If you do encounter bugs, please check at http://bugs.mysql.com. If your bug is not listed, please add it there for the benefit of others.

In this article, we learned how to create a simple stored procedure and run it from the command prompt. For more information on stored procedures in MySQL, visit the MySQL website at: http://dev.mysql.com/doc/mysql/en/Stored_Procedures.html.



 
 
>>> More MySQL Articles          >>> More By Subha Subramanian
 

blog comments powered by Disqus
   

MYSQL ARTICLES

- Oracle Unveils MySQL 5.6
- MySQL Vulnerabilities Threaten Databases
- MySQL Cloud Options Expand with Google Cloud...
- MySQL 5.6 Prepped to Handle Demanding Web Use
- ScaleBase Service Virtualizes MySQL Databases
- Oracle Unveils MySQL Conversion Tools
- Akiban Opens Database Software for MySQL Use...
- Oracle Fixes MySQL Bug
- MySQL Databases Vulnerable to Password Hack
- MySQL: Overview of the ALTER TABLE Statement
- MySQL: How to Use the GRANT Statement
- MySQL: Creating, Listing, and Removing Datab...
- MySQL: Create, Show, and Describe Database T...
- MySQL Data and Table Types
- McAfee Releases Audit Plugin for MySQL Users

Developer Shed Affiliates

 



© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap

Dev Shed Tutorial Topics: