求SQL语句
A表
userid--用户编号
idresp--职能编号
B表
idresp--职能编号
resp--职能,想生成如下结构数据
userid idresp1 resp1 idresp2 resp2 idresp3 resp3望高手回复
A表
userid--用户编号
idresp--职能编号
B表
idresp--职能编号
resp--职能,想生成如下结构数据
userid idresp1 resp1 idresp2 resp2 idresp3 resp3望高手回复
可以用decode来实现