In the previous chapter, we talked about control statements in PL/pgSQL of PostgreSQL. We covered some examples of IF ELSE, CASE statements and some iterative statements like LOOP, WHILE, FOR and FOREACH. In this chapter, we will dive deep into arrays. We will cover array index and array length, use foreach to iterate over the arrays, and convert arrays to a set of rows. It will also include finding duplicate elements in an array, appending ...
6. Handling Arrays
Get Procedural Programming with PostgreSQL PL/pgSQL: Design Complex Database-Centric Applications with PL/pgSQL now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.