比如现在有很多邮件地址存在,想一步删除所有地址,要如何解决?

解决方案 »

  1.   

    http://www.mangguo.org/bulk-replace-wordpress-inner-link/
    这里比较具体
      

  2.   

    邮件地址有没有什么规律的?比如说都是以@xxx.com结尾,@之前都是多少个字符的,或者都是以:开头的等
      

  3.   

    仅靠SQL语句不行,贴出你的数据样本以及规则。
    可以通过正则查找,但替换仅靠mySQL 的SQL语句不行,需要用程序来解决。
      

  4.   

    -- phpMyAdmin SQL Dump
    -- version 2.11.1
    -- http://www.phpmyadmin.net
    --
    -- 主机: localhost
    -- 生成日期: 2009 年 02 月 20 日 17:27
    -- 服务器版本: 5.0.27
    -- PHP 版本: 5.2.4SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";--
    -- 数据库: `wordpress`
    ---- ----------------------------------------------------------
    -- 表的结构 `wp_posts`
    --CREATE TABLE IF NOT EXISTS `wp_posts` (
      `ID` bigint(20) unsigned NOT NULL auto_increment,
      `post_author` bigint(20) NOT NULL default '0',
      `post_date` datetime NOT NULL default '0000-00-00 00:00:00',
      `post_date_gmt` datetime NOT NULL default '0000-00-00 00:00:00',
      `post_content` longtext NOT NULL,
      `post_title` text NOT NULL,
      `post_category` int(4) NOT NULL default '0',
      `post_excerpt` text NOT NULL,
      `post_status` varchar(20) NOT NULL default 'publish',
      `comment_status` varchar(20) NOT NULL default 'open',
      `ping_status` varchar(20) NOT NULL default 'open',
      `post_password` varchar(20) NOT NULL default '',
      `post_name` varchar(200) NOT NULL default '',
      `to_ping` text NOT NULL,
      `pinged` text NOT NULL,
      `post_modified` datetime NOT NULL default '0000-00-00 00:00:00',
      `post_modified_gmt` datetime NOT NULL default '0000-00-00 00:00:00',
      `post_content_filtered` text NOT NULL,
      `post_parent` bigint(20) NOT NULL default '0',
      `guid` varchar(255) NOT NULL default '',
      `menu_order` int(11) NOT NULL default '0',
      `post_type` varchar(20) NOT NULL default 'post',
      `post_mime_type` varchar(100) NOT NULL default '',
      `comment_count` bigint(20) NOT NULL default '0',
      PRIMARY KEY  (`ID`),
      KEY `post_name` (`post_name`),
      KEY `type_status_date` (`post_type`,`post_status`,`post_date`,`ID`),
      KEY `post_parent` (`post_parent`)
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=20 ;--
    -- 导出表中的数据 `wp_posts`
    --INSERT INTO `wp_posts` (`ID`, `post_author`, `post_date`, `post_date_gmt`, `post_content`, `post_title`, `post_category`, `post_excerpt`, `post_status`, `comment_status`, `ping_status`, `post_password`, `post_name`, `to_ping`, `pinged`, `post_modified`, `post_modified_gmt`, `post_content_filtered`, `post_parent`, `guid`, `menu_order`, `post_type`, `post_mime_type`, `comment_count`) VALUES
    (3, 1, '2009-02-08 03:45:59', '2009-02-08 11:45:59', '测试文章内容<pre><code class="php">\r\n$a = 100;\r\n$b = $a + 1;\r\necho $b;\r\n</code></pre>\r\[email protected] 测试文章内容 [email protected] 测试文章内容 [email protected] 测试文章内容', '测试文章标题', 0, '', 'publish', 'open', 'open', '', '%e6%b5%8b%e8%af%95%e6%96%87%e7%ab%a0', '', '', '2009-02-20 17:21:33', '2009-02-21 01:21:33', '', 0, 'http://localhost/?p=3', 0, 'post', '', 0),
    (18, 1, '2009-02-20 17:27:15', '2009-02-21 01:27:15', '测试文章内容 [email protected] 测试文章内容 [email protected] 测试文章内容[email protected] 测试文章内容', '测试文章内容', 0, '', 'publish', 'open', 'open', '', '%e6%b5%8b%e8%af%95%e6%96%87%e7%ab%a0%e5%86%85%e5%ae%b9', '', '', '2009-02-20 17:27:15', '2009-02-21 01:27:15', '', 0, 'http://localhost/?p=18', 0, 'post', '', 0),
    (19, 1, '2009-02-20 17:26:45', '2009-02-21 01:26:45', '', '测试文章内容', 0, '', 'inherit', 'open', 'open', '', '18-revision', '', '', '2009-02-20 17:26:45', '2009-02-21 01:26:45', '', 18, 'http://localhost/?p=19', 0, 'revision', '', 0);
      

  5.   

    数据库wordpress
    表wp-posts
    字段wp-content中所有邮件地址