How do I show a MySQL warning that just happened?

前端 未结 3 1529
执念已碎
执念已碎 2020-12-07 11:10

I just ran a simple MySQL CREATE TABLE statement that produced the line

\"Query OK, 0 rows affected, 1 warning (0.07 sec).\"

I

3条回答
  •  半阙折子戏
    2020-12-07 11:44

    You can also set the command line to always display warnings after a query using \W

    You can switch them off again with \w

提交回复
热议问题