select min(ID), SIN, max(case when type = 'phone' then contact end) as phone, max(case when type = 'email' then contact end) as emailfrom people tgroup by sin;
欢迎分享,转载请注明来源:内存溢出
select min(ID), SIN, max(case when type = 'phone' then contact end) as phone, max(case when type = 'email' then contact end) as emailfrom people tgroup by sin;
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)