Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在存储在 SQL 数据库中的表中有两列。A 列和 B 列都包含布尔值。是否可以仅加载这两列之间的最大值。
如果 A >=B 那么 ELIF B 作为“MAX_Value”?
SELECT case when A >= B Then A else B end as Max_value FROM yourTableName