How can I simulate a print statement in MySQL?

后端 未结 4 1483
忘掉有多难
忘掉有多难 2020-12-08 06:02

I have some procedures where I would like to get some kind of acknowledgement after a condition has been assessed.

For example, the pusedocode would be like,

4条回答
  •  攒了一身酷
    2020-12-08 06:53

    You can print some text by using SELECT command like that:

    SELECT 'some text'
    

    Result:

    +-----------+
    | some text |
    +-----------+
    | some text |
    +-----------+
    1 row in set (0.02 sec)
    

提交回复
热议问题