SQL Server printf

前端 未结 5 1525
臣服心动
臣服心动 2021-02-13 05:19

Is there a printf-like function in Sql Server? I want the same features as the RAISERROR function, but instead of throwing an error, or printing a message, I want to wri

5条回答
  •  忘了有多久
    2021-02-13 05:56

    If you are looking to store some message in a variable, then SET should be enough for you to handle right? Unless I am not clear with the question.

    SET @varcharVariable = 'message text';
    

提交回复
热议问题