SQL中的IF和多表查找

来源:互联网 发布:windows phone 软件 编辑:程序博客网 时间:2024/04/28 05:41

select p.id as pid,(case when p.sex=0 then '女' else '男' end) as psex from po as p,ar as a where p.id=(".$arr.") and p.area=a.id";
 

原创粉丝点击