Concatenates two or more strings into one. A foundational string concatenation function in BigQuery that supports multiple data types.
STRINGDiperbarui: 13 Jun 2026CONCAT(value1, value2 [, ...])The values to concatenate. Non-string values are cast to STRING
1 SELECT CONCAT('Hello', ' ', 'World') as greeting;
Joins three strings into one.
1 SELECT 2 CONCAT(first_name, ' ', last_name) as full_name 3 FROM `project.dataset.employees` 4 LIMIT 3;
Builds a full name from first and last name columns.
| full_name |
|---|
| John Doe |
| Jane Smith |
| Bob Wilson |
1 SELECT 2 CONCAT('Order #', CAST(order_id AS STRING), ' - Total: $', FORMAT('%,.2f', amount)) as order_summary 3 FROM `project.dataset.orders` 4 LIMIT 3;
Concatenates a string with a formatted number.
| order_summary |
|---|
| Order #1001 - Total: $1,500.00 |
| Order #1002 - Total: $2,350.00 |
1 SELECT 2 CONCAT( 3 first_name, ' ', 4 IFNULL(middle_name, ''), 5 IF(middle_name IS NOT NULL, ' ', ''), 6 last_name 7 ) as full_name 8 FROM `project.dataset.customers`;
Concatenates a name with an optional middle name.
| full_name |
|---|
| John William Doe |
| Jane Smith |
Sudah paham CONCAT? Latih langsung di browser
Latihan interaktif, langsung di browser.