Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Concatinated Column Names in a SELECT?

Status
Not open for further replies.

MetalEdge

Programmer
Jul 1, 2003
2
US
Hello. I'm using MySQL with .NET, and I'm having an issue with writing a query that will combine two columns into one result set. This is much like the Microsoft way of doing:
SELECT LastName + ' ' + FirstName FROM tbl1

So the result would be
Doe Jane
Doe John ...

I can't imagine this is impossible to do in MySQL, so are there any ideas? Many thanks!
Bryan
 
[tt]SELECT CONCAT(LastName, ' ', FirstName) FROM tbl1[/tt]

//Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top