# ST\_IsRing

## Syntax

```sql
ST_IsRing(g)
IsRing(g)
```

## Description

Returns true if a given [LINESTRING](../geometry-constructors/linestring) is a ring, that is, both [ST\_IsClosed](st_isclosed) and [ST\_IsSimple](st_issimple). A simple curve does not pass through the same point more than once. However, see [MDEV-7510](https://jira.mariadb.org/browse/MDEV-7510).

`St_IsRing()` and `IsRing()` are synonyms.

<sub>_This page is licensed: CC BY-SA / Gnu FDL_</sub>

{% @marketo/form formId="4316" %}
