I have a table with game controllers, for example:
1 - [N] Laka 2 - [N] James 3 - nor | Brian 4 - nor | John 5 - Player 2 6 - Spectator 7 - [N] Joe
From there I want to select all the players where the first n-characters match, but I donβt know the pattern, only these are the first n-characters. In the above example, I will not return rows 1,2,3,4 and 7.
Is this possible and not too expensive in MySQL?
source share