O'Reilly logo

MySQL® by Paul DuBois

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Writing MySQL Programs Using C

MySQL provides a client library written in the C programming language that you can use to write client programs that access MySQL databases. This library defines an application programming interface that includes the following facilities:

  • Connection management routines that establish and terminate a session with a server

  • Routines that construct SQL statements, send them to the server, and process the results

  • Status-checking and error-reporting functions for determining the exact reason for an error when an API call fails

  • Routines that help you process options given in option files or on the command line

This chapter shows how to use the C client library to write your own programs, using conventions that are ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required