Examples Array usage examples. Example 1: Using static and dynamic arrays This example illustrates the syntax difference of static and dynamic arrays. Example 2: Filling a dynamic array with rows This example shows how to fetch database rows into a dynamic array.