sea-stream

 

mysql> select * from table1;
+----------+------------+-----+---------------------+
| name_new | transactor | pid | order_date          |
+----------+------------+-----+---------------------+
| 1hahha   | 1xiaohong  |   1 | 2019-08-04 20:45:47 |
| 2hahha   | 2xiaohong  |   2 | 2019-08-04 20:45:57 |
| 3hahha   | 3xiaohong  |   3 | 2019-08-04 20:46:02 |
| 4hahha   | 4xiaohong  |   4 | 2019-08-04 20:46:05 |
| 3hahha   | bob        |   5 | 2019-08-04 20:46:08 |
| 3hahha   | lee        |   6 | 2019-08-04 20:46:12 |
+----------+------------+-----+---------------------+
6 rows in set (0.00 sec)


mysql> select max(pid) from table1;
+----------+
| max(pid) |
+----------+
|        6 |
+----------+
1 row in set (0.01 sec)


mysql> select min(pid) from table1;
+----------+
| min(pid) |
+----------+
|        1 |
+----------+
1 row in set (0.00 sec)

 

 

 

分类:

技术点:

相关文章:

  • 2021-11-02
  • 2021-11-17
  • 2022-01-14
  • 2021-07-31
  • 2022-12-23
  • 2022-02-24
  • 2022-12-23
  • 2021-09-24
猜你喜欢
  • 2021-11-19
  • 2022-12-23
  • 2021-04-07
  • 2021-07-30
  • 2022-01-25
  • 2021-06-27
相关资源
相似解决方案