select 的字段為空,給他顯示默認值:
解決辦法一:
select id,name,(case when level is null then 0 else level end) as a from table
select 的字段為空,給他顯示默認值:
解決辦法一:
select id,name,(case when level is null then 0 else level end) as a from table
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。