📜  postgres 声明变量 - SQL 代码示例

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

代码示例1
WITH myconstants (var1, var2) as (
   values (5, 'foo')
)
SELECT *
FROM somewhere, myconstants
WHERE something = var1
   OR something_else = var2;