20¸öʵÓõÄWordPress SQL²éѯ(4)
¡¡¡¡½«Ò³Ãæת»»³ÉÎÄÕ£º
ÒÔÏÂΪÒýÓõÄÄÚÈÝ£º UPDATE wp_posts SET post_type = 'post' WHERE post_type = 'page' |
¡¡¡¡¸ü¸ÄËùÓÐÎÄÕÂÉϵÄ×÷ÕßÊôÐÔ
¡¡¡¡Ê×ÏÈͨ¹ýÏÂÃæµÄSQLÃüÁî¼ìË÷×÷ÕßµÄID£º
ÒÔÏÂΪÒýÓõÄÄÚÈÝ£º SELECT ID, display_name FROM wp_users; |
¡¡¡¡³É¹¦»ñÈ¡¸Ã×÷ÕßµÄоÉIDºó£¬²åÈëÒÔÏÂÃüÁ¼ÇסÓÃÐÂ×÷ÕßIDÌæ»»NEW_AUTHOR_ID£¬¾É×÷ÕßIDÌæ»»OLD_AUTHOR_ID¡£
ÒÔÏÂΪÒýÓõÄÄÚÈÝ£º UPDATE wp_posts SET post_author=NEW_AUTHOR_ID WHERE post_author=OLD_AUTHOR_ID; |
¡¡ÅúÁ¿É¾³ýÎÄÕÂÐÞ¶©ÀúÊ·
¡¡¡¡ÎÄÕÂÐÞ¶©ÀúÊ·±£´æ¿ÉÒÔºÜʵÓã¬Ò²¿ÉÒÔºÜÈÃÈË·³ÄÕ¡£ Äã¿ÉÒÔÊÖ¶¯É¾³ýÐÞ¶©ÀúÊ·£¬Ò²¿ÉÒÔÀûÓÃSQL²éѯ¸ø×Ô¼º½Úʡʱ¼ä¡£
ÒÔÏÂΪÒýÓõÄÄÚÈÝ£º DELETE FROM wp_posts WHERE post_type = "revision"; |
¡¡¡¡Í£ÓÃ/¼¤»îËùÓÐWordPress²å¼þ
ÍƼöÐÅÏ¢
- ¹¹½¨¸ß¿ÉÓú͵¯ÐÔÉìËõµÄKV´æ´¢ÏµÍ³
- ̸̸ÍøÕ¾¾²Ì¬»¯£¨¶þ£©
- ̸̸ÍøÕ¾¾²Ì¬»¯£¨Ò»£©
- Ðì¹úÏ飺΢²©ÊÇ·ñ»á²ÎÓëÍøÕ¾ÅÅÃû
- ApacheÔÚ±¾µØ½¨Á¢·ºÓòÃûÐéÄâÖ÷»ú¼ò·¨
- ÈçºÎ½øÐÐÍøÕ¾Õï¶Ï ΪÍøÕ¾½øÐÐÆÀ·Ö
- Ò»¸ö³É¹¦µÄÕ¾³¤Ó¦¸Ã¾ß±¸µÄËØÖÊ
- Ò»Ìõ΢²©Òý·¢µÄ·ÖÎö£ºÈçºÎÈÃ΢²©µÃµ½¹ã·º´«²¥
- ÈçºÎÈÃÒ»¸öÍøÕ¾ÓÐÇ¿´óÉúÃüÁ¦
- פ×ãIDCÃż÷³Ö±Ò¹ÛÍû Õ¾³¤Ñ¡¹º¿Õ¼ä³É¡°¼èÄѵľö¶¨¡±£¿
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
ÆÀÂÛ