求一条sql语句 有一个表为student学生表四列为 id cid(班级) name sfid(身份id)问题:求与sfid为111学生同过两次班级的所有学生的id为多少?谢谢了 数据库为MySql 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select id from studentwhere cid in (select cid from student where sfid=111)group by idhaving count(*)>1 高分求一个mysql正则表达式 mysql 大表插入问题 如何附带安装mysql server? 诡异的group by ????????????大家都来看看 汉字在 编码方式为UTF-8的 mysql 4.1数据库中显示的是乱码吗? mysql 如何 使用 事务处理 语句???????????? MySQL无法识别中文以外日期格式 mysql用批处理建表问题 怎样能把EXCEL中数据导入到MYSQL中(用PHP)。。最好有范例。谢谢 求指导:一条SQL语句的调优问题 触发器问题 mysql Manager 导出sql文件··急啊~~!
from student
where cid in (select cid from student where sfid=111)
group by id
having count(*)>1