高手帮忙,求SQL select a.* from table1 a,(select keyword,max(datetime) from table1 group by keyword)b where a.keyword=b.keyword and a.datetime=b.datetime 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from table1 where a not exists(select * from table1 where keyword=a.keyword and datetime>b.datetime) select * from table1 where a not exists(select * from table1 where keyword=a.keyword and datetime>b.datetime)请问效率会不会很差? mysql3.23可以执行嵌套select ...(select ...) 吗? 4.1.0之前不支持子查询。select id, keyword,max(datetime) from table1 group by keyword; 存储过程中,begin end 中嵌套 begin end会不会有问题? 多张表,计算出他们 每个表 的数据量, 就一条SQL , 怎么写? mysql4.0.25是否支持select * table where not exists () mysql增加一列并且默认值是当前日期怎么写 开心网数据库架构? Mysql数据库数据量大时的优化问题。 请各位大侠指点指点---老总 一个在mySql 中找出最大值并返回当前记录!! 简单的mysql数据select问题? mysql数据库文件的后缀名是什么啊 请问mysql加上全文索引后插入数据变慢应该如何解决 问一条语句
请问效率会不会很差?
select id, keyword,max(datetime) from table1 group by keyword;