📜  PSQL qith 变量 - SQL 代码示例

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

代码示例1
WITH vars AS (SELECT 42 AS answer, 3.14 AS appr_pi)
SELECT t.*, vars.answer, t.radius*vars.appr_pi
FROM table AS t, vars;