0
我該如何替換和處理speical char
像% ' " & [space] ! @ # $ %^* & ()
和mysql語句中的其他特殊字符?在mysql語句中處理特殊字符
我該如何替換和處理speical char
像% ' " & [space] ! @ # $ %^* & ()
和mysql語句中的其他特殊字符?在mysql語句中處理特殊字符
你只需要escape them (documentation):
Sequence \0 An ASCII NUL (0x00) character. \' A single quote (「'」) character. \" A double quote (「"」) character. \b A backspace character. \n A newline (linefeed) character. \r A carriage return character. \t A tab character. \Z ASCII 26 (Control+Z). See note following the table. \\ A backslash (「\」) character. \% A 「%」 character. See note following the table. \_ A 「_」 character. See note following the table.
如果你使用它的表或列名,你可以環繞名以`` – Ruben 2011-12-15 07:34:27