请协助完成以下sql查询。我正在尝试运行下面的查询,但不确定要做什么。提前感谢
If ALT < 40090 or TPS > 23 or ABS > 0.399 then 1 else 0发布于 2020-04-08 06:12:58
IF语句是一种流控制结构,通常用于存储过程或类似过程中。
如果您希望将其放入查询中,那么您可能需要一个case表达式
case when ALT < 40090 or TPS > 23 or ABS > 0.399 then 1 else 0 end您可以将以下表达式放入查询中:
select
case when ALT < 40090 or TPS > 23 or ABS > 0.399 then 1 else 0 end as res
-- other columns
from ...https://stackoverflow.com/questions/61090203
复制相似问题