MayfieldGlobal

Everything from operating systems, programming to web development and more.

Jan
09

How do I concatenate characters or strings using SQL?

Posted under SQL Server 2005, T-SQL

Concatenation (joining 2 or more characters or strings of the same data type) is accomplished using the “+” operator. For example, let’s say that I want to join the strings “Able” and “Baker”. To do so, I would simply write:

SELECT 'Windows' + 'Vista' AS OSName

Running this query would return:
Read the rest of this entry »