请问这个常见的select怎么写? select a.id,b.online,a.nane from room a,online bwhere a.id=b.idand b.online>0 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select id,online,nane from room a,online bwhere a.id=b.idand b.online>0可以不?第一句一定要写成select a.id,b.online,a.nane 吗? select a.id,a.online,b.namefrom online aleft outer join room b on a.id = b.idwhere a.online>0 select room.id,online,namefrom room,onlinewhere b.online>0 and b.id in (select id from a);一楼的方法好象也是对的 select room.id,online,name from room join online on room.id=online.id where online>0 第一句一定要写成select a.id,b.online,a.nane 吗?id前面一定要有表名或表的别名,online,name前面可以不要,因为id在两个表里都有,需要确定到底用那个表的id 下面的存储过程一直提示有问题,我也没发现怎么回事.帮忙看一下. 关于索引问题 新人求教有关数据库事务问题 新装mysql后,cpu占用率高,急! mysql中的unicode字符转化为汉字 启动不了mysql 了 MySQL 如何锁定已选择的行,不让其他进程读取? create temporary table 问题 求助jdbc调用存储过程问题!!!!!!!!!!!!! mysql无法查看事务隔离 帮忙看看这个查询语句怎么写啊? 数据库读取总是停顿,怎么回事?
from room a,online b
where a.id=b.id
and b.online>0可以不?
第一句
一定要写成select a.id,b.online,a.nane 吗?
from online a
left outer join room b
on a.id = b.id
where a.online>0
from room,online
where b.online>0
and b.id in (select id from a);一楼的方法好象也是对的
第一句
一定要写成select a.id,b.online,a.nane 吗?id前面一定要有表名或表的别名,online,name前面可以不要,因为id在两个表里都有,需要确定到底用那个表的id