Retrieving comment with longest length
-
For statistical purposes I want to retrieve the comments that have the longest length. MySQL doesn’t like this standard query:
select *
from wp_comments
where length(comment_content) =
(select max(length(comment_content)) from wp_comments);
How come? I know how to do it using more than one query, but I’d like to be able to pull the information in one go.
Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Retrieving comment with longest length’ is closed to new replies.