Number of words in manuscript statistics

Source: Internet
Author: User
Article Statistics Word count
Article table
ID author Titile content
How to count the number of articles each author has and the number of articles I have to rank from more to less
Is the first to show the maximum number of articles (how many are displayed) total article content word count
Next, use the list to show each title
The second one is to show the number of articles second

Analogy
I don't have a lot of trouble thinking about myself, and I want to learn a good idea.

------Solution--------------------
What are you going to do to explain it in detail? If it's just a simple statistic, I can tell you that world can count the number of words in the article.
------Solution--------------------
SQL Code
Select ID, Titile, SUM (LENGTH (Titile)) as Lengthfrom  ' your_table ' where author = ' ". $author." ' ORDER by LENGTH des C
------Solution--------------------
SQL Code
Select COUNT (*) as Count, author,sum (content), Group_concat (title) group by Authororder by Count DESC
------Solution--------------------
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.