Question : Select firstname, lastname AS fullname

OK, that's the pseudo-query. Can you tell me the right syntax? In the mysql database there are two fields, firstname and lastname. I want my recordset to return things like "Mike Williams", "Shelley Long", etc. Thanks!

Answer : Select firstname, lastname AS fullname

You should use

SELECT CONCAT( firstname , ' ', Surname) as FullName

Random Solutions  
 
programming4us programming4us