mysql 转换NULL数据方法
<pre>
SELECT info1,info2, IFNULL(info3,0) as info3 FROM `info1`;
</pre>
<pre>
IFNULL(expr1, expr2)
</pre>

如果expr1不是NULL,IFNULL()返回expr1,否则返回expr2

 

相关文章:

  • 2022-12-23
  • 2021-12-17
  • 2021-12-15
  • 2021-10-14
  • 2022-12-23
  • 2021-11-13
  • 2021-09-09
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-07
相关资源
相似解决方案