APPEND¶
The APPEND function in SQL is used to append an element to a list.
Syntax¶
list: The list to which you want to append the element.element: The element that you want to append to the list.
Examples¶
First, create a table named Append with columns for the list, an integer element, and a text element:
Insert some data into the Append table:
Use the APPEND function to append the integer element to the list:
Use the APPEND function to append the text element to the list:
The APPEND function requires a list as the first parameter. If you try to use it with a non-list value, an error will occur:
You can also use the APPEND function when inserting data into a table. First, create a table named Foo with a column for the list:
Then, insert data into the Foo table using the APPEND function:
Finally, retrieve the list from the Foo table: