Now that we know how to begin and end a conversation with the server, it's time to see how to conduct the conversation while it's going on. This section shows how to communicate with the server to process queries.
Each query you run involves the following steps:
Construct the query. The way you do this depends on the contents of the query—in particular, whether or not it contains binary data.
Issue the query by sending it to the server for execution.
Process the query result. This depends on what type of query you issued. For example, a SELECT statement returns rows of data for you to process. An INSERT statement does not.
One factor to consider in constructing queries is which function to use for sending them to the ...