This chapter covers the C API provided by MySQL. The first part
provides a basic tutorial on how to connect to MySQL and how to query MySQL
with C and the C API. Following the tutorial is an alphabetical listing of
MySQL functions in the C API with explanations and, in most cases, examples.
At the end of this chapter is a listing of special data types for the C API.
For the examples in this chapter, I have used a database for a fictitious
computer support business. The database contains one table with client work
requests (workreq) and another with client contact
information
(clients).