Does PLPGSQL array indexing start at 1?

I found that by default, the first array index in PLPGSQL starts with 1, not 0, like most programming languages. I was just curious why this is so, and what other programming language follows this?

Thanks!

+6
source share
1 answer

Which languages ​​correspond to indexing an array by default of 1?

ALGOL 68, COBOL, Fortran (unless otherwise indicated), FoxPro, Lua, MATLAB ... anyway, the list is here .

+8
source

Source: https://habr.com/ru/post/897758/


All Articles