📌  相关文章
📜  如何在没有最大值的情况下获取最后一个 id - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:39.940000             🧑  作者: Mango

代码示例1
SELECT DISTINCT customers.col
FROM tableName customers
  LEFT JOIN tableName idNum
    ON idNum.col > customers.col AND idNum.col IS NOT NULL
WHERE idNum.col IS NULL