Method __builtin.Sql.Connection()->sqlstate() Method sqlstate string sqlstate() Description Return last SQLSTATE. The SQLSTATE error codes are specified in ANSI SQL.