Spec-Zone .ru
спецификации, руководства, описания, API

22.4.6. MySQL Connector/C++ Getting Started: Usage Examples

22.4.6.1. MySQL Connector/C++ Connecting to MySQL
22.4.6.2. MySQL Connector/C++ Running a Simple Query
22.4.6.3. MySQL Connector/C++ Fetching Results
22.4.6.4. MySQL Connector/C++ Using Prepared Statements
22.4.6.5. MySQL Connector/C++ Complete Example 1
22.4.6.6. MySQL Connector/C++ Complete Example 2

The download package contains usage examples in the directory examples/. These examples explain how to use the following classes:

The examples cover:

The examples in this document are only code snippets, not complete programs. The code snippets provide a brief overview on the API. For complete programs, check the examples/ directory of your MySQL Connector/C++ installation Please also read the README file in that directory. To test the example code, edit the examples.h file in the examples/ directory to add your connection information, then rebuild the code by issuing a make command.

The examples in the examples/ directory include: