> For the complete documentation index, see [llms.txt](https://851958789.gitbook.io/notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://851958789.gitbook.io/notes/0610_triangle_judgement/slt.md).

# 思路1

用CASE...WHEN...

```sql
SELECT x, y, z,
IF((x+y>z AND x+z>y AND y+z>x), 'Yes', 'No') AS triangle
FROM triangle;
```
