Created
July 24, 2014 18:07
-
-
Save pikajude/e913af2dfc9361e4d930 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE posts SET reply_count = (SELECT count(*) FROM posts AS p2 WHERE p2.reply_to_post_number = posts.post_number) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment