Any know how can I do a search in SQL with including apostrophes? For example: I want to search a username o'connel in the database with sql.
+2
A:
Double up the quote for normal strings in SQL. Please see my comment though.
...WHERE name = 'O''Connel'
gbn
2009-01-27 05:53:14