ST_InteriorRingN(poly, N)

Returns the N-th interior ring for the Polygon value poly as a
LineString. Rings are numbered beginning with 1.

ST_InteriorRingN() handles its arguments as described in the
introduction to this section.

URL: https://dev.mysql.com/doc/refman/8.4/en/gis-polygon-property-functions.html

