SELECT count( id)
FROM table
GROUP BY uid where posttime=(curdate()+1-1)
FROM table
GROUP BY uid where posttime=(curdate()+1-1)
解决方案 »
- 求一条sql语句,绝对难题
- mysql c api ucs2 字符集问题
- mysql连接问题。localhost能连接,127.0.0.1能连接,但是通过我的局域网192.168.1.111
- Geometry数据类型的问题
- 存储过程内嵌存储过程,最多能套几层 mysql
- 一个简单的问题,我想把一段很长的内容存入库中,比如说一封长信的内容,我该把字段设为什么类型合适呢,
- MySql的一些基础问题
- 关于linux下MYSQL的启动????????
- mysql 中数据加锁的问题。 高分相送!
- 求助帖:linux下有时候 mysql -u root 能直接免密登陆有时候又不行
- 想请教一简单问题?你知道的
- varchar(50) 改为varcher(150),怎么改?
FROM table
GROUP BY uid where posttime=(curdate()+1-1) order by counter desc
FROM table
GROUP BY uid where posttime=(curdate()+1-1) order by counter desc limit 0,1(curdate()+1-1)这个值要具体到你posttime的格式了
FROM table_name
WHERE posttime=curdate() GROUP BY uid ORDER by counter desc limit 1;