The last auto_incrementvalue (i.e., the last credential) generated for the current connection can be found with . LAST_INSERT_ID()
, ; , , .
show errors:
mysql> select a from b;
ERROR 1046 (3D000): No database selected
mysql> show errors;
+-------+------+----------------------+
| Level | Code | Message |
+-------+------+----------------------+
| Error | 1046 | No database selected |
+-------+------+----------------------+
1 row in set (0,00 sec)
, ...
, : , ()
, - @@last_error_id @@last_error_message, - .
():
, , , 5.2 , - .