思路,判断三角形规则,任意两边之差小于第三边,任意两边之和大于第三边即可 select * , if(abs(x-y)<z and x+y>z,'Yes','No') as triangle from Triangle