sql server isnull函数

isnull函数

  --ISNULL() 函数用于规定如何处理 NULL 值

  语法:SELECT ISNULL(check_expression, replacement_value)

  --check_expression等待检验是否为null的值

  --replacement_value检验值为null时,替代check_expression的值

  示例:select isnull(para,0)--当para是null时,将'0'赋给para

 

要么生,要么死
原文地址:https://www.cnblogs.com/llljpf/p/6508838.html