Website Domain Registration and Website Hosting - Host a Website Tonight
GoWebsite.com provides Domain Registration
Website Hosting, On-Line Shopping Carts, SEO
Blog Hosting, Email Accounts, Security Certificates,
Merchant Accounts & other Website Products.
Free setup! Speak with us anytime: 480-624-2500

Are stored procedures supported in MySQL?

Stored procedures are supported in MySQL 5.0. A stored procedure is a set of SQL statements that can be stored in the server. Once this has been done, clients don't need to keep reissuing the individual statements but can refer to the stored procedure instead.

NOTE: This procedure applies only to Dedicated/Virtual Private Servers (VPS), as it requires executing the command from the MySQL command line. Customers using Shared Hosting will have to execute this procedure using phpMyAdmin, by removing the DELIMITER statements and instead using the "Delimiter" field provided in the phpMyAdmin query window.

An example of an allowed stored procedure:

DELIMITER $$
DROP PROCEDURE IF EXISTS `spGetSouls`$$

CREATE PROCEDURE `spGetSouls`()
DETERMINISTIC
BEGIN
SELECT * FROM soul;
END$$
DELIMITER ;

CALL spGetSouls();

NOTE: Be sure that your stored procedures are labeled as DETERMINISTIC

For more information on stored procedures, see the MySQL website and Stored Procedures Frequently Asked Questions.

Domain Registration Domain Registration
Pay less for website domain names. Register your own .com, .net or .org for as low as $10.18 per year. Everything you need to get online - FREE with your domain.
Website Hosting Website Builder
For as little as $3.89 per month you can build your Website online with Website Builder using our easy to use professional templates.
Play Video - Demo
Shopping Cart Software Quick Shopping Cart
Build and run your own successful online store in minutes! You're just five easy steps away!
Play Video
Website Hosting Website Hosting
Everything you need to give your Website the high-performance home it deserves!  Protect transactions and customer data with a
SSL Certificate