这意味着,在单引号字符串,单引号字符必须逃,在双引号字符串,双引号字符必须逃跑。
This means, inside single quoted strings, the single quote character has to be escaped, and inside double quoted strings, the double quote character has to be escaped.
您还可以简单地将整个字符串放到单引号(')中,但是需要在变量中真正的单引号字符前面加上一个反斜线(\ ')。
You can also simply enclose the entire variable value in single quotation marks (') as long as you precede any actual single quotation marks in the variable with a backslash (\ ').
就是在简单的insert语句中,两个值被转义,以解决任何含义不确定的字符,比如说可能会扰乱sql语法的单引号。
It's a simple INSERT statement where the two values are escaped to account for any errant characters such as single quotes that might disturb the SQL syntax.
在该字符串中,您可以使用任意多的单引号和双引号(参见清单4)。
Within in the string, you can use as many single and double quotation marks as you like (see Listing 4).
第一,在创建字符串时,您可以混合使用单引号和双引号,只要字符串在开始位置和结束位置使用同一类型的引号。
First, you can mix single and double quotation marks when creating a string, as long as the string USES the same type of quotation mark at the beginning and end.
这里,第一个字符串使用一对单引号定义,第二个字符串使用一对双引号定义。
Here, the first string is defined with a pair of single quotes. The second one USES a pair of double quotes.
如果仔细看看上面这个语句,会看出所有值都是直接字符串(由单引号包围)或变量名,它们都由逗号分隔。
If you look closely at the statement above, you will see that all of the individual values are either literal strings (surrounded by single quotes) or variable names, all separated by commas.
如果在基于字符串的查询谓词周围使用双引号,而不是单引号,就会收到语法错误。
If you use double quotes around your string-based query predicate, instead of pairs of single quotes, you'll get a syntax error.
根据句法,在uri字符串前后使用引号(单引号或双引号),并用冒号将前缀分隔开;对其它字符没有任何规定。
Syntactically, you use quotes (single or double) around the URI string, and a colon to set off the prefix; other characters present no interference.
如果参数是基于字符的输入参数,那么在单引号中指定字面值。
If the parameter is a character-based input parameter, then you would specify the literal value surrounded in single quotes.
另外一点值得注意的是字符串是通过单引号或双引号被编码的。
It's worth noting that strings are encoded using single or double quotation marks.
但所有参数值都使用单引号括入,这使单引号中的内容成为了字符串。
However, all parameter values are enclosed in single quotes, which makes the contents within the quotes a literal string.
使用单引号、双引号和三引号语法创建的字符串仍然是字符串对象。
The strings I've been creating using the single, double, or triple quotation mark syntax are still string objects.
在处理字符串数据时,可以使用双引号或单引号分隔。
When working with string data, you can use either double quotation marks or single quotation marks to delimit them.
如果字符串是以单引号开始,那么必须以单引号结束,反之亦然。
If you start a string with a single quotation mark, you must end with a single quotation mark, and vice versa.
如果你只想输出一个基本的字符串,就用单引号吧,这样会节省一些资源。
If you just want to output a basic string, use single quotes! There is a marginal performance benefit, since the string does not get parsed.
字符串用单引号限定,从而节省了PHP从字符串中搜索可替换的变量的时间。
Strings are delimited by single quotes instead of double quotes to avoid the performance hit of PHP searching for variables to interpolate within the strings.
而单引号引用的字符串则是简单直接的文字。
这两个编码均放在单引号内,以防止shell篡改有特殊含义的字符。
Both codes are enclosed in single quotation marks to prevent the shell from interpolating characters that have special meaning.
因为使用单引号禁用了称为扩展的bash特性,其中,特殊字符和字符系列由值替换。
Because using single quotes disables a bash feature called expansion, where special characters and sequences of characters are replaced with values.
相比之下,使用单引号分隔的字符串将包括在其中的所有内容视为文字字符—两个连续的单引号是一个例外,它们被单纯地当作单引号。
In contrast, single-quoted strings treat everything inside their delimiters as literal characters-except two consecutive single-quotes, which are treated as a literal single-quote.
在MySQL中,字符序列\表示一个反斜杠转移单引号',但在DB 2中,单引号必须要再加一个单引号来实现转义' '(即两个单引号)。
The character sequence \ represents a backslash escaped single quote 'in MySQL, but in DB2, a single quote must be escaped by adding another single quote "(double single quotes)."
用双引号代替expr属性中所用的单引号,然后将双引号(“)字符转义成”。
Replace the single quotes used for the expr attribute with double quotes, and then escape the double quote (") characters to ".
soliddb字符串使用单引号分隔。
使用单引号或三重引号的字符串前面可以加一个字母“r ”以表示Python不应该解释规则表达式特殊字符。
Both single-quoted or triple-quoted strings may be preceded by the letter "r" to indicate that regular expression special characters should not be interpreted by Python. For example.
例如,对于Apache您可以使用Mod_Security筛选器(比如secfilterselective THE_REQUEST “(\' | \ ”) “)查找字符串中的单引号和双引号并禁止它们。”
For example, with Apache you could use a Mod_Security filter such as SecFilterSelective THE_REQUEST "(\ '| \") "to look for single quotes and double quotes in strings and disallow them."
Jython字符串可以使用单引号,也可以使用双引号。
要正确访问,必须将JDBCURL作为字符串传递给connect命令;因此需要将其封装在单引号(')字符里。
To be accessed properly, the JDBC URL must be passed into the connect command as a string; hence it's enclosed in single quotation mark (') characters.
Ruby不处理任何用单引号括起来的字符串信息。
Ruby does not process any data in a string if you wrap it in single quotes.
description列是长度可变的字符串,所以它预计是一个字符串(通过将字符数据括在单引号中指明)。
The description column is a variable-length character string, so it expects a string (which you indicate by enclosing the character data within single quotes).
应用推荐