Home » MYSQL » Mysql Error handling » Question
  1. Which of the following returns an SQLSTATE code?
    1. mysql_close()
    2. mysql_error()
    3. mysql_errno()
    4. mysql_sqlstate()
    5. None of these
Correct Option: D

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.



Your comments will be displayed only after manual approval.