tags:

views:

59

answers:

1

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