SELECT ___()____ new_address FROM customers;
This is how I filled it out
SELECT concat(city,',',state) as new_address FROM customers;
But it’s still wrong
P粉8808180432022-10-20 10:25:46
Do you have an answer? This is the same, English doesn’t work either
陈磊2021-11-05 14:35:00
The statement itself should be fine, check whether the entered comma is a comma in English mode
autoload2021-11-04 09:13:03
The concat function does not have the function of specifying a connector when connecting strings. You can use concat_ws. The above example is
select concat_ws(',',city,state) as new_address from customers;