CoyoteDataSet * afgs_command_execute_single_query gchar *  cmd_string,
  ...
 

Allows to execute a single query which returns results.

Execute a sql query which gets data such as SELECT sentence. This function can be used as follow:

    afgs_command_execute_single_query ("SELECT * FROM anywhere");

But also, as follow:

    afgs_command_execute_single_query (
              "SELECT * FROM anywhere WHERE attr = '%s'", value);

The behaviour of this function can also be tweaked using database access semantic [string]. This value allows to control how connections to database are handled.

Parameters:
cmd_string printf posix format string sql command.
Returns:
a dataset which contains the query data or NULL if something fails.