select 的字段为空,给他显示默认值:

解决办法一:

select  id,name,(case when level is null then 0 else level end) as a  from table

 

相关文章: