1.

Which of the following returns an SQLSTATE code?(a) mysql_error()(b) mysql_errno()(c) mysql_sqlstate()(d) mysql_close()The question was posed to me during an interview.My question is taken from Handling Errors and Processing Command Options in section MySQL Programs Using C of MySQL

Answer»

Right choice is (C) mysql_sqlstate()

BEST explanation: The MySQL API call named ‘mysql_sqlstate()’ returns an SQLSTATE code. This SQLSTATE VALUE is more ‘vendor NEUTRAL’ because it is based on the ‘ANSI SQL’ and ‘ODBC’ standards.



Discussion

No Comment Found

Related InterviewSolutions