mysql if

select t.site_id,
if(id=24,num,0)a,
if(id=11,num,0)b
FROM

xx t

posted @ 2019-04-03 11:50  zfzf1  阅读(92)  评论(0编辑  收藏  举报