pil*_*eks 12
你错过了它 - 用反斜杠转义是为了确保查询没有格式错误,例如这样的东西肯定会破坏并可能导致SQL注入风险:
insert into table values ('whatever 'this' is')
Run Code Online (Sandbox Code Playgroud)
并且没有任何东西会被保存在表格中,而这个:
insert into table values ('whatever \'this\' is')
Run Code Online (Sandbox Code Playgroud)
将在表格中保存"此'为'的任何值".