PostgreSQL ARRAY_APPEND() function
ARRAY_APPEND() function
This function is used to append an element to the end of an array.
Syntax:
array_append (anyarray, anyelement)
Return Type:
anyarray
PostgreSQL Version: 9.3
Example: PostgreSQL ARRAY_APPEND() function
Code:
SELECT array_append(ARRAY[2,9], 6);
Sample Output:
array_append -------------- {2,9,6} (1 row)
Previous: TRUNC function
Next: ARRAY_CAT function
- New Content published on w3resource:
- HTML-CSS Practical: Exercises, Practice, Solution
- Java Regular Expression: Exercises, Practice, Solution
- Scala Programming Exercises, Practice, Solution
- Python Itertools exercises
- Python Numpy exercises
- Python GeoPy Package exercises
- Python Pandas exercises
- Python nltk exercises
- Python BeautifulSoup exercises
- Form Template
- Composer - PHP Package Manager
- PHPUnit - PHP Testing
- Laravel - PHP Framework
- Angular - JavaScript Framework
- Vue - JavaScript Framework
- Jest - JavaScript Testing Framework