SQL语句你行不?(至于你行不行我不知道,但我是不行) 各位大虾,本人遇到一个关于SQL语句的麻烦,请教各位,先贴出来: select t1.* from v_video t1, (select top 100 percent v_id ,count( v_u_id) as ct from r_u_v group by v_id order by ct desc) as t2 where t1.v_id=t2.v_id;
select t1.* from v_video t1,
(select top 100 percent v_id ,count( v_u_id) as ct from r_u_v group by v_id
order by ct desc) as t2 where t1.v_id=t2.v_id;
------解决方案-------------------- 直接这样不接行了 this.getHibernateTemplate().execute(new HibernateCallback() {