Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
76Activity
0 of .
Results for:
No results containing your search query
P. 1
MySQL Stored Procedures

MySQL Stored Procedures

Ratings:

4.5

(6)
|Views: 7,800|Likes:
Published by Oleksiy Kovyrin

More info:

Published by: Oleksiy Kovyrin on May 26, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/09/2014

pdf

text

original

 
MySQL Stored Procedures
By Peter GulutzanCopyright (c) 2004, 2006 by MySQL AB.All rights reserved.Book 1 in the “MySQL 5.0 New Features” SeriesSecond Edition – Revised for MySQL 5.1
 
Contents
Technical MattersIntroductionA definition and an exampleWhy stored procedures?Setup with MySQL 5.0CREATE PROCEDURE exampleWhat statements are legal in a procedure bodyCall the procedureCharacteristics clausesDigressionsExerciseParametersCompound statementsVariablesConditions and IF-THEN-ELSECASELoopsError HandlingCursorsSecurityDynamic PREPARE and EXECUTEFunctionsMetadataDetailsOracle ComparisonSQL Server ComparisonDB2 ComparisonStandard ComparisonStyleStored Procedure example: tables_concat()Function example: rno()Function example: running_total()Procedure example: MyISAM "foreign key" insertionProcedure example: Error propagationProcedure example: LibraryProcedure example: HierarchyTips when writing long routinesBugsFeature requestsResourcesBooksThe End
 
Technical Matters
3
Acknowledgments
For design of stored procedures: the ANSI/ISO “SQL Standards” committee.For the original code: Per-Erik Martin of Uppsala, Sweden.For enhancing and fixing the code: Antony Curtis, Sergey Glukhov, Dmitri Lenev.For many technical suggestions and reviewing of this book: Trudy Pelzer.
About the Author
Peter Gulutzan, MySQL AB Software Architect, worked with stored procedures for adifferent DBMS for several years. He is co-author of three SQL books. His job at MySQLAB involves looking for any deviations from orthodox SQL, finding test procedures, andbeing the pioneer who tries to use the new code with real databases. He lives inEdmonton, Canada.
Technical Production Matters
Originally written in December 2004 with OpenOffice, using these fonts:Regular text: Times, regular, 12Computer output: Courier, bold, 12Title: Times, bold, 36Part header: Times, bold, 20
 
Sub-part header: Times, bold, 16Date of last revision: June 1 2006

Activity (76)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Ritwick Paul liked this
nds9 liked this
moshegeorge liked this
konkeelay liked this
rbcuser_digi liked this
trowland liked this
partha7612 liked this
adpcon liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->