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
Post a Comment