postgres 定义变量
WITH myconstants (var1, var2) as (
values (5, 'foo')
)
-- select var1,var2;
SELECT *
FROM stock_move, myconstants
WHERE picking_id = var1
OR name = var2;
本文来自博客园,作者:那时一个人,转载请注明原文链接:https://www.cnblogs.com/qianxunman/p/14000107.html