摘要: IFNULL(expr1,expr2)如果expr1不是NULL,IFNULL()返回expr1,否则它返回expr2。IFNULL()返回一个数字或字符串值,取决于它被使用的上下文环境。IF(SUM(`ns_product_finished_in_wh`.`InCount`),SUM(`ns_product_finished_in_wh`.`InCount`),0) AS ALLINQTY当IF(expr1,expr2,expr3)如果expr1是TRUE(expr10且expr1NULL),那么IF()返回expr2,否则它返回expr3。IF()返回一个数字或字符串值,取决于它被使用的上 阅读全文
posted @ 2013-12-30 15:10 经验源于积累 阅读(586) 评论(0) 推荐(0) 编辑