I use the following SQL to concatenate multiple database columns from one table to one column in the result set:
SELECT (field1 + '' + field2 + '' + field3) FROM table1
When one of the fields is null, I got a null result for the whole concatenation expression. How can I overcome this?
The database is MS SQL Server 2008. By the way, is this the best way to concatenate database columns? Is there any standard SQL?
sql sql-server-2008 concatenation
jilt3d Jun 21 2018-11-11T00: 00Z
source share