📜  选择sql代码示例中的最后一行

📅  最后修改于: 2022-03-11 15:05:31.130000             🧑  作者: Mango

代码示例4
SELECT
  (SELECT * FROM tableName ORDER BY col1 LIMIT 1)        AS first,
  (SELECT * FROM tableName ORDER BY col1 DESC LIMIT 1)   AS last
;