I’m having a MySQL issue.
I’m trying to select all rows in a table that start with a backslash and an apostrophe:
SELECT * FROM table WHERE name like '\\\'%'
But this is not working. An example of what I’m trying to select: \'S-GRAVENDEEL
How do I do this?
Thanks
p.s.
Yes, this was the result of a faulty import, I know, but now I need to fix it 🙂
So I’ve got a solution.
Basically what I want to do is fix the entries, so I’ll show you what the replace looks like:
Apparently, I need to escape the apostrophe with an apostrophe and the backslash with a backslash.