时间:2021-07-01 10:21:17 帮助过:24人阅读
列表:A B C 代表三角形三条边
输出:
Isosceles
Equilateral
Scalene
Not A Triangle
代码如下:
select CASE
when (A + B) <= C then ‘Not A Triangle‘
when A = B and B = C then ‘Equilateral‘
when (A = B) or (B = C) or (A = C) then ‘Isosceles‘
when A != B and B != C and A != C then ‘Scalene‘
end from TRIANGLES
sql 查询三条边是否能构成三角形
标签:输出 amazon end bsp sel 三角形 代码 from triangle