最新消息:20210917 已从crifan.com换到crifan.org

[暂未解决]MySQL中多次提交的结果的最早之后的时间

MySQL crifan 1804浏览 0评论

mysql select some column with other column

MySQL :: MySQL 5.7 Reference Manual :: 3.3.4.3 Selecting Particular Columns

MariaDB [guanzhi_removeDuplicate]> SELECT DISTINCT staff_id,created_at FROM selection;
。。。。。
|       15 | 1453346875 |
|       15 | 1453346877 |
|       15 | 1453346878 |
|      302 | 1453346912 |
。。。
|      309 | 1453361529 |
|      303 | 1453362970 |
+———-+————+
482 rows in set (0.00 sec)

其中想要去除:

|      302 | 1453346912 |
|      302 | 1453346933 |
。。。
|      302 | 1453346957 |

中的:

出了第一次提交的,最早的时间:

1453346912

之外的,其他的数据。

SELECT DISTINCT staff_id,created_at FROM selection;

暂时未解决。

转载请注明:在路上 » [暂未解决]MySQL中多次提交的结果的最早之后的时间

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
92 queries in 0.180 seconds, using 23.27MB memory