Click here to Skip to main content
15,890,670 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am SELECTING two columns:

SQL
SELECT ([FirstName] + [LastName]) AS [FullName], UserID WHERE CustomerID = @CustomerID


I would just like to know if there is a way to add identical space in between the two columns in the select statement.
Posted
Updated 20-Mar-13 12:13pm
v2
Comments
[no name] 19-Mar-13 21:59pm    
You mean like + " " +?
Sergey Alexandrovich Kryukov 19-Mar-13 22:13pm    
What do you mean by space? You cannot talk about UI here, can you? :-)
—SA

1 solution

Do you mean to add space between FirstName and LastName?
SQL
SELECT ([FirstName] + ' ' + [LastName]) AS [FullName], UserID WHERE CustomerID = @CustomerID
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900