select film_id,description from fillm where film_id>600 and film_id<605 order by film_id limit 1,5
2015-04-28
select film.id,description from film order by film.id limit 100,10
2015-04-28
将子查询优化位join时要注意是否存在一对多的关系
select distinct t.id from t join t1 on t.id=t1.tid
select distinct t.id from t join t1 on t.id=t1.tid
2015-04-28
select count(year='2006' or null) as xx from tablename;
2015-04-28