SQL syntax question

  • Thread starter Thread starter VB Programmer
  • Start date Start date
V

VB Programmer

In SQL how do you combine several fields AS 'xxxxx'.

This type of syntax doesn't work
SELECT MyPhone & "-" & MyCity AS 'MyInfo' FROM XXXXX WHERE....
 
+ should work, FirstField + SecondField but depending on the type, you may
need to cast it to a Varchar or respective type.
 
Back
Top