This function executes the supplied SQL query. Here is its syntax:
int mysql_query(MYSQL *mysqlObject, const char *sqlstmt)
Here:
- mysqlObject represents the MYSQL object
- sqlstmt represents the null-terminated string that contains the SQL statement to be executed
The function returns 0 if the SQL statement executes successfully; otherwise, it returns a non-zero value.