求助一条SQL语句 有表 user (id username) role (id rolename) userrole(userId roleId)查询出username为“abc”的用户id 角色名rolename; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select rolename from role where id in(select roleid from userrole where userid in (select userid from user where usename='abc')) 曾点分select r.rolename from user u,role r,userrole ur where u.id=ur.userId and r.id=ur.roleIdand u.username='abc' select t1.id, t3.rolename from user t1,userrole t2,role t3where t1.id=t2.userId and t2.roleId=t3.id and t1.username='abc' ORA 12505 错误信息 各位高手,请帮帮小弟吧!! 表空间和用户无法删除? 如何通过Sql语句将一个数值型字段转化为日期类型 方案与表 如何在oracle8.0.4中获取用户的ip地址? 关于日日志文件的菜问题。 请教SQL*PLUS连接的问题 把这10分加上:oracle805的客户端可以连接oracle816的服务器么?如果可以,分别在服务器端和客户端如何设置啊 如何将一个纵向的表转换为一个横向的表显示出来 OMS问题 SQLPLUS中,sys能夠登陸,scott不能登陸,why?
where u.id=ur.userId and r.id=ur.roleId
and u.username='abc'
t1.id,
t3.rolename
from user t1,userrole t2,role t3
where t1.id=t2.userId
and t2.roleId=t3.id
and t1.username='abc'