解决方案 »
- 各位大侠们 帮帮忙啊 mysql4.0 两个表更新问题
- MySQL 函数如何返回一张表
- 为什么addBatch没有直接insert快?在线求解
- 统计某表在2009 每个月的人数如何写sql
- windows下面mysql查询如何输出到文件
- 如何用phpMyAdmin连接mysql4.1和MYSQL5.0
- 如何修改默认的端口号
- 在mysql中date型字段数据为0000-00-00,而在jsp中取得的是0002-11-30,为什么,请各位前辈指教..
- 大家可以测试一下自己的机器有多快!
- mysql数据库设置字段默认为0,为啥最后都是为null?
- 用分组汇总后,数据为0的不显示,怎么解决呢
- Mysql语句,脑子又卡主,求助一下
SELECT soft_id,(SELECT COUNT(distinct(uc_softrecord.user_id))AS A FROM uc_softrecord where
uc_softrecord.soft_id='2' and uc_softrecord.id='511331') AS ClickPeoNumber,
(select uc_softrecord.click from uc_softrecord where uc_softrecord.soft_id='2' and
uc_softrecord.id='511331') AS ClickNumber,
(SELECT count(distinct(user_id) ) as DropNumber FROM uc_softrecord where soft_id='2' and
uc_softrecord.`status` in (1,2) and uc_softrecord.id='511331') AS DropNumber,
(Select count(distinct(user_id) ) AS num from uc_softrecord where uc_softrecord.`status`='2' and
uc_softrecord.soft_id='2' and uc_softrecord.id='511331') AS DropOkNumber
FROM uc_softrecord where uc_softrecord.soft_id='2' and uc_softrecord.id='511331' and
uc_softrecord.createtime between '2011-09-15' and '2011-09-30'
show index from xx
贴表索引情况