标签: sql postgresql select
一切!我有Postgresql和查询
SELECT complex_expression() FROM t WHERE complex_expression() != '';
有没有办法在查询中只编写一次complex_expression()然后再引用它? Thanx提前
complex_expression()
答案 0 :(得分:2)
select * from ( SELECT complex_expression() ce FROM t ) where ce != '';