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

分组查询随着时间轴变换的 sql 咋实现??

  •  
  •   zorui · 2016-10-25 19:43:12 +08:00 · 3026 次点击
    这是一个创建于 2711 天前的主题,其中的信息可能已经有所发展或是发生改变。

    http://ww2.sinaimg.cn/large/0060lm7Tgw1f94qukof7dj30wg0a30zm.jpg mysql 中这个表按照 position 分组查询出每组正在发布的数据(正在发布: time_updated<当前时间最近的一条) 结果要六条数据,每个位置对应着正在发布的信息。 sql 咋实现?

    1 条回复    2016-10-25 19:45:24 +08:00
    zorui
        1
    zorui  
    OP
       2016-10-25 19:45:24 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   987 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 20:16 · PVG 04:16 · LAX 13:16 · JFK 16:16
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.