由表a,b,c得到d!!!!!!!!!!!!!!!!!!!!! 表a保存的是用户id和名称,而表b,c只有用户id,无名称。我要得到表d,有用户的名称。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 如果安你的思路应得出:d:name1 name2 a1 a4sql:select username1 =(select username from aa where userid = (select idb1 from bb where id =1)),username2=(select username from aa where userid = (select idb2 from bb where id =1)) 怎么得到a1,a3呢?如果是a1,a4的话像楼上说的就好了 求一个循环查询某表多字段的语句 求助,关于3表联合查询 数据莫名丢失,怎样跟踪或恢复? 【请教】我这种情况的sqlerver数据库restore该用何种方式? sa登录名 邹捷大哥。。。再快来看看:) 问个关于sql2008索引的问题 如何实现根据纪录的条数来集计? 向邹老大请教压缩数据库问题 SQL语法解释器源代码! 高分请教,一个将表中数据导成insert into ...形式文本的数据存储,请帮忙改改! sql创建表,如何将字段设为自动编号类型?
d:
name1 name2
a1 a4sql:
select username1 =(select username from aa where userid = (select idb1 from bb where id =1)),username2=(select username from aa where userid = (select idb2 from bb where id =1))