Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > MySQL
|
MySQL General discussion about the MySQL database.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the MySQL section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 3rd, 2004, 05:24 AM
Authorized User
 
Join Date: Aug 2003
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to spraveens
Default Regarding Procedures

Hi

  I would like to know , How to write Procedures in Mysql similar to Pl/Sql , and also whether it is similar to pl/sql or not?

Thank You.

Praveen:(

 
Old March 10th, 2004, 10:08 AM
Registered User
 
Join Date: Dec 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi

The procedures and functions in MySQL 5.0 are seemingly similar to PL/SQL , but this is a alpha version and doesn't work well,The mysql documentation is also poor.

CREATE PROCEDURE simpleproc (OUT param1 INT)
  BEGIN
     SELECT COUNT(*) INTO param1 FROM t;
   END;


This is the only documentation that I have obtained.
http://www.mysql.com/doc/en/CREATE_PROCEDURE.html

Best Regards,

Peter Tesone
Mentat Technologies
http://www.mentattech.com








Similar Threads
Thread Thread Starter Forum Replies Last Post
2 procedures? scandalous Access 5 January 26th, 2007 05:06 PM
Help me to DO Stored Procedures msbsam SQL Server 2000 3 October 23rd, 2006 01:54 PM
Store Procedures joeshea Classic ASP Databases 1 July 20th, 2006 01:02 AM
Store Procedures ! augustine SQL Server 2000 1 September 15th, 2004 01:29 PM
Right Security Procedures Walden SQL Server 2000 0 November 12th, 2003 11:09 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.