现在的位置: 首页 > 综合 > 正文

书籍字数统计

2013年10月16日 ⁄ 综合 ⁄ 共 261字 ⁄ 字号 评论关闭

 //统计始章节和书籍的字数
update chapter set fontCount=len(cast(content as varchar(8000)));
update book set finishCount=pp.fontCount from book inner join ( select sum(fontCount) as

fontCount,c.bookid as bookid from chapter c,book b where c.bookid=b.bookid group by c.bookid )as

pp on book.bookid= pp.bookid ;

抱歉!评论已关闭.