mysql - issue in getting record which has apostrophy value in column -


in table have record such => base\'ball.
when execute select query fetch column value same => base\'ball.
want value appear baseball.

so how can in sql query?

try query:

select replace(your_field, 'base\\\'ball', 'baseball') your_field '%base\'ball%' 

update:

select replace(your_field, '\'', '') your_field '%\'%' 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -