Summary

In this lesson, you learned the principles of user-definable functions: why you might need them and how to install them.

You saw how to configure your MySQL installation so that it can load user-definable functions. You compiled the sample UDFs included in your MySQL installation, and activated and tested them in the mysql console.

You also learned how to write your own UDFs in C or C++, studying the calling sequences that should be used.

Get Sams Teach Yourself MySQL in 21 Days, Second Edition 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.