As far as I know we can't enter '
, "
, \
to a database(to a varchar
field). We need special methods like '''
, '"'
, \\
to enter them into a database.
any other symbols than that?
I'm using MYSQL!
As far as I know we can't enter '
, "
, \
to a database(to a varchar
field). We need special methods like '''
, '"'
, \\
to enter them into a database.
any other symbols than that?
I'm using MYSQL!
Special Character Escape Sequences are listed below-
\0 - ASCI NUL(X '00')
\' - Single quote (“'”)
\" - Double quote (“"”)
\b - Backspace
\n - Newline (linefeed)
\r - Carriage return
\t - Tab
\Z - ASCII 26 (Control-Z)
\ - Backslash (“\”)
\% - “%”
\_ - “_”
You can see Table 10.1 and examples to get more information on MySql's String Literal's page.
Also check this question.