select coalesce(p.uuid,convert( '\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0',BINARY)), date(bc.date) d, count(bc.id)
from
http://www.geeksengine.com/database/single-row-functions/conversion-functions.php
本文介绍了一种使用 SQL 的 coalesce 函数和 convert 函数进行数据处理的方法。通过具体 SQL 语句示例,展示了如何选择性地填充空值并转换特定格式的数据。
select coalesce(p.uuid,convert( '\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0',BINARY)), date(bc.date) d, count(bc.id)
from
http://www.geeksengine.com/database/single-row-functions/conversion-functions.php
1272
887
408

被折叠的 条评论
为什么被折叠?
