mysql查询时给值为null的设置默认值

select coalesce(title,'liu') from a; mysql中能够用 help coalesce html http://dev.mysql.com/doc/refman/5.1/en/comparison-operators.html#function_coalesce mysql 性能测试 两万之内(一万为空,一万不为空)的数据和取出值再判断是否为null给默认值稍高,
相关文章
相关标签/搜索