例如select id,name,phone from table要判断phone是否为空,如果为空的话把phone字段直接固定赋值为0来显示,否则就赋值1目前只知道select id,name,0 as phone from table可以把phone的值固定赋值,但是不知道怎判断字段是否为空,case when的话不知道要怎么放在语句里和其他字段一起查,求助!!在线等回复!!!!