📜  mysql with - SQL 代码示例

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

代码示例1
WITH
  cte1 AS (SELECT a, b FROM table1),
  cte2 AS (SELECT c, d FROM table2)
SELECT b, d FROM cte1 JOIN cte2
WHERE cte1.a = cte2.c;