select if (isnull(col),0,1) as col. MYSQL 中的IFNULL函数说明:. IFNULL(expr1,expr2). 如果expr1是NULL,IFNULL()返回expr2,否则它返回expr2。
確定! 回上一頁