I have a mysql table below:
id user_id ticket
1 39 56478939
2 51 42234951
3 40 56478940
4 52 67284952
Where ticket (for example for first row) = 564789 + 39 (user_id) My request looks like:
SELECT CONCAT_WS(";", id, user_id, ticket) FROM `signals`
And I will get:
1;39;56478939
2;51;42234951
...
How can I get this type of data using MYSQL request (remove from ticket user_id at the end of ticket):
1;39;564789
2;51;422349
...
The request should be fast enough: Thanks you very much!