09月22日, 2014 2020次
select id,ll.名称 from (select dt1.id, dt1.name,dt1.age,dt2.名称 from (select id2 as id ,name,mama,daidai,null as age from t1 union select id, null as name ,null as mama ,null as daidai ,age from t2 limit 10) as dt1 left join shj1 as dt2 on dt1.id= dt2.序 ) as ll where id >0 group by id order by id;
select * , (case id when 1 then "wang1" when "2" then "wang2" when "" then "kong" end ) sex from t2 limit 10;
暂无留言,赶快评论吧