Click here to Skip to main content
15,886,091 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi frnds,

am working on gridview data is displaying from Sqlserver database.

I want to give space in column.

According to my Code and query it is

Select FL_Name as FullName,Fn_Name AS FirstName,Ln_Name AS LastName from Emp

But i need space, it must be like this Full Name, First Name, Last Name.

Please can you help me, how to give space in between single column.

Thanks...
Posted

try this one, it would be helpful...
SQL
Select FL_Name as "Full Name",Fn_Name AS "First Name",Ln_Name AS "Last Name" from Emp

;-)
 
Share this answer
 
Try:
SQL
SELECT FL_Name AS [Full Name],Fn_Name AS [First Name],Ln_Name AS [Last Name] FROM Emp
 
Share this answer
 
Comments
Ankur\m/ 5-Feb-14 6:21am    
Wtf?! 1? Countering.
Member239258 5-Feb-14 6:28am    
Thanks.
OriginalGriff 5-Feb-14 6:36am    
You're welcome!
Try Select FL_Name as FullName ,' ' , Fn_Name AS FirstName,' ', Ln_Name AS LastName from Emp
 
Share this answer
 
Select [Full Name] = FL_Name ,[First Name] = Fn_Name ,[Last Name] = Ln_Name from Emp
 
Share this answer
 
v2
Comments
Ankur\m/ 5-Feb-14 6:22am    
Incorrect vote countered.
hello
forexample:-


select First_Name as "Full Name",First_Name AS "First Name",Last_Name as 'Last Name' from tbl_User
 
Share this answer
 
v2

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