Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PLPGSQL array indexing start at 1?

I have found that, by default, the first index of an array in PLPGSQL starts at 1, and not 0 like most programming languages. I was just curious as to why this is, and what other programming language follow this?

Thanks!

like image 842
lightningmanic Avatar asked Sep 21 '11 14:09

lightningmanic


1 Answers

What languages follow the default array indexing at 1?

ALGOL 68, COBOL, Fortran (if not specified otherwise), FoxPro, Lua, MATLAB, ... anyway, the list is here.

like image 83
Rook Avatar answered Sep 22 '22 21:09

Rook



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!