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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

want 2 columns to look like 1 in sql statement 1

Status
Not open for further replies.

AlbertAguirre

Programmer
Nov 21, 2001
273
US
Hello,
I have done this in access before but i cannot figure out how to do this in mysql.

I want to write an SQL statement that will join 2 columns together in the result set.

Example: (I want fname and lname to appear as full name in the result)

In access I used to do this:
SELECT fname & " " & lname as fullname FROM table

Result should be:
fullname
========
John Smith
Jane Doe

How do i do this in MySql?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top