sql查询百分比

2014-11-24 08:38:49 ? 作者: ? 浏览: 0

sql查询百分比
Java代码  
select v.OBID,CONCAT(`item_count`/(select sum(item_count)  
 from   
  vote_item)*100,'%') as '百分比',s.text  
   from `vote_item` v,`vote_subject` s  
    where s.OBID = v.fk_subject  

-->

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: