New versions: Dev (3.15) | Latest (3.14)

ARRAY_GET

Applies to ✅ Open Source Edition   ✅ Express Edition   ✅ Professional Edition   ✅ Enterprise Edition

The ARRAY_GET function allows for accessing array elements by 1-based ordinal.

SELECT (ARRAY[1, 2])[1]
create.select(arrayGet(array(1, 2), 1)).fetch();

The result would look like this:

+-----------+
| array_get |
+-----------+
|         1 |
+-----------+

Feedback

Do you have any feedback about this page? We'd love to hear it!

The jOOQ Logo