1.

For failure, mysql_query() returns _______________(a) 0(b) 1(c) -1(d) a non-zeroThe question was asked in unit test.My question comes from Processing SQL Statements topic in portion MySQL Programs Using C of MySQL

Answer»

Right choice is (d) a non-zero

The best I can EXPLAIN: Both of the functions named ‘mysql_query()’ and ‘mysql_real_query()’ return zero for statements that succeed. They return non zero for FAILURE. A STATEMENT is successfully executed if the server ACCEPTS it.



Discussion

No Comment Found

Related InterviewSolutions