473,386 Members | 1,835 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

characters that must be escaped

Jay
Is there a definitive list of characters that must be escaped in order to
insert them into a text field in mysql?

TIA,
Jay
Jul 20 '05 #1
8 2615
"Jay" wrote:
Is there a definitive list of characters that must be escaped in order to
insert them into a text field in mysql?

TIA,
Jay


http://dev.mysql.com/doc/mysql/en/String_syntax.html

--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/mySQL-charac...ict132699.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=444521
Jul 20 '05 #2
"steve" wrote:
[quote:7b55bfeb28="Jay"]Is there a definitive list of characters that must be escaped in order to
insert them into a text field in mysql?

TIA,
Jay


http://dev.mysql.com/doc/mysql/en/String_syntax.html[/quote:7b55bfeb28]

If you use php to insert into mysql, you can use mysql_escape_string
function, so you don’t have to worry about it:
http://ca2.php.net/mysql_escape_string

--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/mySQL-charac...ict132699.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=444551
Jul 20 '05 #3
\0 An ASCII 0 (NUL) character.
\' A single quote (`'') character.
\" A double quote (`"') character.
\b A backspace character.
\n A newline character.
\r A carriage return character.
\t A tab character.
\z ASCII(26) (Control-Z). This character can be encoded to allow you
to work around the problem that ASCII(26) stands for END-OF-FILE on
Windows. (ASCII(26) will cause problems if you try to use mysql
database < filename.)
\\ A backslash (`\') character.
\% A `%' character. This is used to search for literal instances of
`%' in contexts where `%' would otherwise be interpreted as a wildcard
character. See section 6.3.2.1 String Comparison Functions.
\_ A `_' character. This is used to search for literal instances of
`_' in contexts where `_' would otherwise be interpreted as a wildcard
character. See section 6.3.2.1 String Comparison Functions.

See "http://mysqld.active-venture.com/String_syntax.html" for more
details.
--
raqueeb hassan
congo (drc)
Jul 20 '05 #4
Jay
"Raqueeb Hassan" <wi*******@gmail.com> wrote in message
news:81**************************@posting.google.c om...
\0 An ASCII 0 (NUL) character.
\' A single quote (`'') character.
\" A double quote (`"') character.
\b A backspace character.
\n A newline character.
\r A carriage return character.
\t A tab character.
\z ASCII(26) (Control-Z). This character can be encoded to allow you
to work around the problem that ASCII(26) stands for END-OF-FILE on
Windows. (ASCII(26) will cause problems if you try to use mysql
database < filename.)
\\ A backslash (`\') character.
\% A `%' character. This is used to search for literal instances of
`%' in contexts where `%' would otherwise be interpreted as a wildcard
character. See section 6.3.2.1 String Comparison Functions.
\_ A `_' character. This is used to search for literal instances of
`_' in contexts where `_' would otherwise be interpreted as a wildcard
character. See section 6.3.2.1 String Comparison Functions.

See "http://mysqld.active-venture.com/String_syntax.html" for more
details.

Thanks guys,
Jay
Jul 20 '05 #5
"Jay" wrote:
Is there a definitive list of characters that must be escaped in order to
insert them into a text field in mysql?

TIA,
Jay


http://dev.mysql.com/doc/mysql/en/String_syntax.html

--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/mySQL-charac...ict132699.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=444521
Jul 20 '05 #6
"steve" wrote:
[quote:7b55bfeb28="Jay"]Is there a definitive list of characters that must be escaped in order to
insert them into a text field in mysql?

TIA,
Jay


http://dev.mysql.com/doc/mysql/en/String_syntax.html[/quote:7b55bfeb28]

If you use php to insert into mysql, you can use mysql_escape_string
function, so you don’t have to worry about it:
http://ca2.php.net/mysql_escape_string

--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/mySQL-charac...ict132699.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=444551
Jul 20 '05 #7
\0 An ASCII 0 (NUL) character.
\' A single quote (`'') character.
\" A double quote (`"') character.
\b A backspace character.
\n A newline character.
\r A carriage return character.
\t A tab character.
\z ASCII(26) (Control-Z). This character can be encoded to allow you
to work around the problem that ASCII(26) stands for END-OF-FILE on
Windows. (ASCII(26) will cause problems if you try to use mysql
database < filename.)
\\ A backslash (`\') character.
\% A `%' character. This is used to search for literal instances of
`%' in contexts where `%' would otherwise be interpreted as a wildcard
character. See section 6.3.2.1 String Comparison Functions.
\_ A `_' character. This is used to search for literal instances of
`_' in contexts where `_' would otherwise be interpreted as a wildcard
character. See section 6.3.2.1 String Comparison Functions.

See "http://mysqld.active-venture.com/String_syntax.html" for more
details.
--
raqueeb hassan
congo (drc)
Jul 20 '05 #8
Jay
"Raqueeb Hassan" <wi*******@gmail.com> wrote in message
news:81**************************@posting.google.c om...
\0 An ASCII 0 (NUL) character.
\' A single quote (`'') character.
\" A double quote (`"') character.
\b A backspace character.
\n A newline character.
\r A carriage return character.
\t A tab character.
\z ASCII(26) (Control-Z). This character can be encoded to allow you
to work around the problem that ASCII(26) stands for END-OF-FILE on
Windows. (ASCII(26) will cause problems if you try to use mysql
database < filename.)
\\ A backslash (`\') character.
\% A `%' character. This is used to search for literal instances of
`%' in contexts where `%' would otherwise be interpreted as a wildcard
character. See section 6.3.2.1 String Comparison Functions.
\_ A `_' character. This is used to search for literal instances of
`_' in contexts where `_' would otherwise be interpreted as a wildcard
character. See section 6.3.2.1 String Comparison Functions.

See "http://mysqld.active-venture.com/String_syntax.html" for more
details.

Thanks guys,
Jay
Jul 20 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jay | last post by:
Is there a definitive list of characters that must be escaped in order to insert them into a text field in mysql? TIA, Jay
4
by: Ewok | last post by:
let me just say. it's not by choice but im dealing with a .net web app (top down approach with VB and a MySQL database) sigh..... Anyhow, I've just about got all the kinks worked out but I am...
17
by: Carl Mercier | last post by:
Hi, Is it possible to use special characters like \n or \t in a VB.NET string, just like in C#? My guess is NO, but maybe there's something I don't know. If it's not possible, does anybody...
8
by: david.lindsay.green | last post by:
Hello all, I am quite new a web scripting and making web pages in general and I have stumbled across a problem I have as yet been unable to solve. I am trying to take the contents of a textarea box...
3
by: Taras_96 | last post by:
Hi everyone, I'm having a bit of trouble understanding the purpose of escaping nulls, and the use of addcslashes. Firstly, the manual states that: "Strictly speaking, MySQL requires only...
12
by: Torsten Bronger | last post by:
Hallöchen! I need some help with finding matches in a string that has some characters which are marked as escaped (in a separate list of indices). Escaped means that they must not be part of...
1
by: bwilcoxis | last post by:
I have an externally generated xml file that correctly escaping characters such as apostrophes and quotes and rendering them as &amp;#8217; and &amp;#39; the xml file has the following...
3
KevinADC
by: KevinADC | last post by:
Purpose The purpose of this article is to discuss the difference between characters inside a character class and outside a character class and some special characters inside a character class....
0
by: hash4sp | last post by:
Hello ! I have a problem with the escaped charactes which I am sending to an aspx page. This is javascript escaped characters %u0646%u062A%u0627%u0626%u062C%20%u0627%u0644%u062 8%u062D%u062B ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.