Shortest way to check for null and assign another value if not

前端 未结 11 2281
伪装坚强ぢ
伪装坚强ぢ 2020-12-13 01:32

I am pulling varchar values out of a DB and want to set the string I am assigning them to as \"\" if they are null. I\'m currently doi

11条回答
  •  遥遥无期
    2020-12-13 02:07

    You can also do it in your query, for instance in sql server, google ISNULL and CASE built-in functions.

提交回复
热议问题