SQL NULL 换成0,IF 函数

如果test.age 是null 就用0替换,否则返回test.age

IF(test.age IS NULL,0,test.age)

猜你喜欢

转载自feiteyizu.iteye.com/blog/2261497