Mini-Antipattern: Stored Procedures in MySQL
MySQLâs implementation of stored procedures was introduced in version 5.0 in 2005. There wasnât much demand for improvements, because most developers who used MySQL during that time preferred to execute SQL queries from application code or ORM classes, instead of using stored procedures. Because of this history, using procedures in MySQL has some additional challenges, beyond those described in the preceding chapter. Even a developer who is accustomed to using stored procedures in other brands of SQL products should read the following points before deciding to use procedures extensively in MySQL.
Using Packages
MySQLâs stored procedures donât have any support for packages, modules, or object-oriented ...
Get SQL Antipatterns, Volume 1 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.