Print debugging info from stored procedure in MySQL

后端 未结 5 2093
滥情空心
滥情空心 2020-12-12 18:32

Is there a way in MySQL to print debugging messages to stdout, temptable or logfile? Something like:

  • print in SQLServer
  • DBMS_OUTPU
5条回答
  •  悲哀的现实
    2020-12-12 19:27

    I usually create log table with a stored procedure to log to it. The call the logging procedure wherever needed from the procedure under development.

    Looking at other posts on this same question, it seems like a common practice, although there are some alternatives.

提交回复
热议问题