📜  postgresql if 0 then 1 - SQL 代码示例

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

代码示例1
-- returns the greatest value, in case 1
select greatest( 0, 1 )
-> 1
-- it also works with null values
select greatest( null, 1 )
-> 1