Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: SQL Server
Expertise: Beginner
Oct 6, 2000

Combining Text Fields

Question:
How do I combine multiple text fields into a single field? For example, combining someone's first, middle, and last name into a field called "full name". I've done a search on combining fields and other variations but found nothing.

Answer:
SQL Server concatenates fields using the + sign. Try this:

select au_fname + ' ' + au_lname as 'Full Name'
from authors
DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date