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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I am not sure if I am getting this correct but you
So you have no much options. Since there is no
direct binary modein MySQL youIf 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.