SQLite CONCAT() Function
Definition and Usage
The CONCAT() function adds two or more texts together into one text.
NULL arguments are ignored.
Note: You can also join texts with the || operator. With ||, the result is NULL if any part is NULL.
Tip: Also look at CONCAT_WS().
Syntax
CONCAT(text1, text2, ...)
Parameter Values
| Parameter | Description |
|---|---|
| text1, text2, ... | Required. The texts to add together. At least one argument is needed |
Technical Details
| Return type: | Text |
|---|---|
| Works in: | SQLite 3.44.0 and later |
More Examples
Example
Add the address, postal code and city together:
SELECT CONCAT(Address, ', ', PostalCode,
' ', City) AS FullAddress
FROM Customers;
Try it Yourself »