Reputation: 53687
Hi I want to insert all escape characters in a column in MySQL. I can not insert \ always because a long data may have a lot escape characters.
Thanks Sunil Kumar Sahoo
Upvotes: 0
Views: 2525
Reputation: 9406
I am not sure if I am getting this correct but you
So you have no much options. Since there is no direct binary mode
in MySQL you
If choosing first approach have a look at MySQL manual for some escaping string details. Particularly you may escape one backslash \
with double backslashes \\
sequence. Also have a look at NO_BACKSLASH_ESCAPES, which eliminates need for escaping completly.
Upvotes: 1