user2516034
user2516034

Reputation: 175

MySQL SELECT + add a character after value

I need to add a character after a value. For example:

SELECT brand FROM `autoinfo` WHERE 1

result:

Audi  
Ford  
...

I need to that result:

Audi w  
Ford w  
...  

How can I do this?

Upvotes: 2

Views: 16041

Answers (1)

Taryn
Taryn

Reputation: 247670

If you need to concatenate a symbol after the brand, then use the CONCAT() function:

SELECT concat(brand, ' w') as brand
FROM `autoinfo` 
WHERE 1;

Upvotes: 17

Related Questions