select classid,info from (select classid,min(info) as info from t2 group by classid) a inner join (select classid,max(info) as info from t2 group by classid) b on a.classid=b.classid and a.info<>b.info
解决方案 »
- php DOMDocument 处理xml failed to load external entity
- 反序列化 SimpleXMLElement Object
- smarty 的正则问题
- 一些简单问题
- memcache 数据过大,导致$mem->get($key)的结果为bool(false),请问各位兄弟,有什么好的办法,谢谢
- dojo 搭建基于xmpp的即时聊天系统
- 不知道这个问题算不酸怪[PHP MYSQL]
- 关于网上会议?
- 请问用php建一个论坛最快的方法是什么?
- 如何用php实现java的AES加密
- 问下,php在window下用什么编辑器好?
- 急问个easyphp问题,装前是不是要先装mysql,apache,php呀?
select classid,info from t2 where classid=A order by ID union ... limit 2不过要知道T1的所有值现在想想SQL是否有while(...)语句??
您能把完整的SQL写下吗?另外:这种情况是不是mysql4.0无法完成的?
我用的是MYSQL4。0以上的,我的本地机就成,但公司的服务器就不成