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 open and close 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 that determine the reason for an error when an API call fails
• Routines that 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 reasonably consistent ...
Get MySQL, 5th 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.