0
全部!我有PostgreSQL和查詢SQL:如何在SELECT中從WHERE引用子表達式?
SELECT
complex_expression()
FROM
t
WHERE
complex_expression() != '';
是否有寫complex_expression()
只能查詢一次,然後引用它的方法嗎? Thanx提前
全部!我有PostgreSQL和查詢SQL:如何在SELECT中從WHERE引用子表達式?
SELECT
complex_expression()
FROM
t
WHERE
complex_expression() != '';
是否有寫complex_expression()
只能查詢一次,然後引用它的方法嗎? Thanx提前
select * from
(
SELECT complex_expression() ce
FROM t
)
where ce != '';