MySQL and PHP

3.13 The mysqli_sql_exception class

Copyright 1997-2021 the PHP Documentation Group.

The mysqli exception handling class.

 mysqli_sql_exception {
mysqli_sql_exception, extends RuntimeException Properties  protected string sqlstate ;
Inherited properties  protected string message ;
  protected int code ;
  protected string file ;
  protected int line ;
}

sqlstate

The sql state with the error.