How to concatenate two strings in SQL Server 2005

后端 未结 6 1325
夕颜
夕颜 2020-12-06 09:16

I want to concatenate the words \"dummy\'s\" and \"dock\".

How can I concatenate them in SQL Server 2005? Does it support double quotes?

6条回答
  •  渐次进展
    2020-12-06 09:34

    I got a easy solution which will select from database table and let you do easily.

    SELECT b.FirstName + b.LastName FROM tbl_Users b WHERE b.Id='11'
    

    You can easily add a space there if you try

    SELECT b.FirstName +' '+ b.LastName FROM Users b WHERE b.Id='23'
    

    Here you can combine as much as your table have.

提交回复
热议问题