V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
MySQL 5.5 Community Server
MySQL 5.6 Community Server
Percona Configuration Wizard
XtraBackup 搭建主从复制
Great Sites on MySQL
Percona
MySQL Performance Blog
Severalnines
推荐管理工具
Sequel Pro
phpMyAdmin
推荐书目
MySQL Cookbook
MySQL 相关项目
MariaDB
Drizzle
参考文档
http://mysql-python.sourceforge.net/MySQLdb.html
usernametoolong
V2EX  ›  MySQL

如何自动删除某内容?

  •  1
     
  •   usernametoolong · 2014-09-27 15:34:54 +08:00 · 2829 次点击
    这是一个创建于 3503 天前的主题,其中的信息可能已经有所发展或是发生改变。
    经常有spam党来骚扰我客户,他的程序有问题,每天被spam n次一次上千条,目前最省事的就是从mysql里直接删数据。。。

    mysql有个a的数据库,里面有个b表,如何自动删除关键字为c的内容?
    2 条回复    2014-09-27 22:55:09 +08:00
    loading
        1
    loading  
       2014-09-27 18:03:25 +08:00
    自动=定时任务
    limuxy
        2
    limuxy  
       2014-09-27 22:55:09 +08:00 via Android
    加一个cron 定时delete from b where key like %c%
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2088 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 01:43 · PVG 09:43 · LAX 18:43 · JFK 21:43
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.