1

I have a table like this

Name  Country State
John  US      California

I want to do a select statement with a concat so I get something like this

http:// getmehelp / US / John.txt
0

3 Answers 3

2
SELECT CONCAT ( 'http://getmehelp/', country , '/', name , '.txt') AS link;
2

The query you are looking for should be this one:

SELECT concat('http://getmehelp/',Country,'/',Name,'.txt')
FROM table;
0
select concat('http://getmehelp/', country, '/', name, '.txt')
from your_table

Not the answer you're looking for? Browse other questions tagged or ask your own question.