Workshop

The exercises are provided to help you solidify your understanding of the material covered today. Try to understand the exercise answers before continuing to tomorrow's lesson.

Quiz

1:

True or False: UDFs can be added to a MySQL server that is a standard binary distribution.

A1: False. It needs to be compiled with the --with-mysqld-ldflags=-rdynamic option. The standard binary distributions are not compiled with this, so you will need to compile a source distribution with this option to configure.
2:

True or False: If you define a UDF called SOME_FUNC(), a C function within the UDF called some_func_deinit() performs cleanup tasks.

A2: True.
3:

True or False: UDFs can be used to create aggregating functions, which calculate values across several ...

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.