在mssql中的@@error,在mysql中用什么替代,谢谢!

解决方案 »

  1.   

    mysql> show errors;
    +-------+------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
    | Level | Code | Message                                                                                                                                                 |
    +-------+------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
    | Error | 1064 | You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'error' at line 1 |
    +-------+------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
    1 row in set (0.00 sec)