› 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
refresh
V2EX  ›  MySQL

求一个更新数据的 sql 语句,要求类似于 row_number + x 的效果

  •  
  •   refresh · May 15, 2014 · 3755 views
    This topic created in 4515 days ago, the information mentioned may be changed or developed.
    mysql不支持row_number,我希望更新一批数据,更新结果为row_number + x,有办法么?
    类似于这样: update table set field = row_number + 100 where field > 10 order by other
    当然这个sql是错误的。
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   849 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 20:45 · PVG 04:45 · LAX 13:45 · JFK 16:45
    ♥ Do have faith in what you're doing.