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 · 3476 views
    This topic created in 4381 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   ·   Solana   ·   3008 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 15:19 · PVG 23:19 · LAX 08:19 · JFK 11:19
    ♥ Do have faith in what you're doing.