20¸öʵÓõÄWordPress SQL²éѯ(2)
¡¡¡¡²éÕÒÎÞÓñêÇ©
¡¡¡¡Èç¹ûÄãÔÚWordPressÊý¾Ý¿âÀïÖ´Ðвéѯɾ³ý¾ÉÎÄÕ£¬ºÍ֮ǰɾ³ý²å¼þʱµÄÇé¿öÒ»Ñù£¬ÎÄÕÂËùÊô±êÇ©»áÁôÔÚÊý¾Ý¿âÀ²¢ÇÒ»¹»á³öÏÖÔÚ±êÇ©Áбí/±êÇ©ÔÆÀï¡£ ÏÂÃæµÄ²éѯ¿ÉÒÔ°ïÄãÕÒ³öÎÞÓõıêÇ©¡£
ÒÔÏÂΪÒýÓõÄÄÚÈÝ£ºSELECT * From wp_terms wt INNER JOIN wp_term_taxonomy wtt ON wt.term_id=wtt.term_id WHERE wtt.taxonomy='post_tag' AND wtt.count=0; |
¡¡¡¡ÅúÁ¿É¾³ýÀ¬»øÆÀÂÛ
¡¡¡¡Ö´ÐÐÒÔÏÂSQLÃüÁ
ÒÔÏÂΪÒýÓõÄÄÚÈÝ£º DELETE FROM wp_comments WHERE wp_comments.comment_approved = 'spam'; |
¡¡¡¡Õâ¸öSQL²éѯ»áɾ³ýÄãµÄÍøÕ¾ÉÏËùÓÐδÉóºËÆÀÂÛ£¬²»Ó°ÏìÒÑÉóºËÆÀÂÛ¡£
ÒÔÏÂΪÒýÓõÄÄÚÈÝ£º DELETE FROM wp_comments WHERE comment_approved = 0 |
¡¡¡¡½ûÖ¹ÆÀÂÛ½ÏÔçÎÄÕÂ
¡¡¡¡Ö¸¶¨comment_statusµÄֵΪopen¡¢closed»òregistered_only¡£ ´ËÍ⻹ÐèÒªÉèÖÃÈÕÆÚ(Ð޸ĴúÂëÖеÄ2010-01-01)£º
ÒÔÏÂΪÒýÓõÄÄÚÈÝ£º UPDATE wp_posts SET comment_status = 'closed' WHERE post_date < '2010-01-01' AND post_status = 'publish'; |
¡¡¡¡Í£ÓÃ/¼¤»îtrackbackÓëpingback
Ö¸¶¨comment_statusµÄֵΪopen¡¢closed»òregistered_only¡£
¡¡¡¡ÏòËùÓÐÓû§¼¤»îpingbacks/trackbacks£º
ÒÔÏÂΪÒýÓõÄÄÚÈÝ£º UPDATE wp_posts SET ping_status = 'open'; |
ÍƼöÐÅÏ¢
- ¹¹½¨¸ß¿ÉÓú͵¯ÐÔÉìËõµÄ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ÎÞÃÜÂëµÇ¼
ÆÀÂÛ