on-internet
← Community

How to find the size of an array in postgresql

Stack Overflow ·

Is there any way to find a size of an array? For Example, CREATE TABLE example (id integer[]) ; INSERT INTO example VALUES ( '{}'); INSERT INTO example VALUES ( '{5,6,7}'); From this, is there any possibilities to get a result like following, size --- 0 3

Comments

Sign in or sign up to comment and upvote.

No comments yet.