Name
msqlQuery
Synopsis
int msqlQuery( int sock , char *query )
Executes the given SQL query. In mSQL 2, the return value is the
number of rows affected by the query (or selected by a
SELECT
query). In mSQL 1, zero is returned upon
success. In both versions, in the case of an error, -1 is returned.
Example
rows_returned = msqlQuery( dbh, "SELECT * FROM people" );
Get MySQL and mSQL 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.