Created
September 21, 2010 23:58
-
-
Save ginatrapani/590828 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
CREATE TABLE tu_posts_tmp ( post_id bigint(11) NOT NULL ); | |
INSERT INTO tu_posts_tmp | |
SELECT p.post_id FROM tu_posts p | |
INNER JOIN tu_posts p1 ON p.in_reply_to_post_id = p1.post_id | |
WHERE p.network = 'facebook' AND p1.network='facebook page'; | |
UPDATE tu_posts, tu_posts_tmp | |
SET network = 'facebook page' | |
WHERE tu_posts.post_id = tu_posts_tmp.post_id; | |
DROP TABLE tu_posts_tmp; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment