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.
相比之下,使用单引号分隔的字符串将包括在其中的所有内容视为文字字符—两个连续的单引号是一个例外,它们被单纯地当作单引号。
The translator obviously does not know what code will manipulate the translated text, so they must know how to enter required single quotes or apostrophes.
翻译人员显然不知道什么代码将操作翻译的文本,因此他们必须知道如何输入所需的单引号/撇号。
String analysis automatically computes that by the time it is concatenated to the SQL command, it cannot include single quotes or semicolons.
字符串分析能够自动计算出,到它连接到此SQL命令时候位置,它不可能包含单个的引号或者分号。
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.
如果仔细看看上面这个语句,会看出所有值都是直接字符串(由单引号包围)或变量名,它们都由逗号分隔。
Here, the first string is defined with a pair of single quotes. The second one USES a pair of double quotes.
这里,第一个字符串使用一对单引号定义,第二个字符串使用一对双引号定义。
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.
就是在简单的insert语句中,两个值被转义,以解决任何含义不确定的字符,比如说可能会扰乱sql语法的单引号。
When you set a value for the MCAUSER attribute, enclose the value in single quotes to avoid issues with case sensitivity on distributed platforms.
当您设置mcauser属性的值时,应该将值包括在单引号中,以避免分布式平台上的区分大小写问题。
Single quotes are better, because then you can use double quotes inside the one-liner.
单引号更好,因为使用单引号后您可以在一行程序内使用双引号。
The careful reader will realize that this may fail badly if the passed argument includes single quotes.
细心的读者会发现,如果传递的参数包含单引号,将会完全失败。
The single quotes are used because the double quotes are needed within the drawing command if more than one word is to be drawn, and you cannot have double quotes within double quotes.
使用单引号是因为如果需要绘制多个字,则绘图命令中需要使用双引号,而您不能在双引号中再用双引号。
However, all parameter values are enclosed in single quotes, which makes the contents within the quotes a literal string.
但所有参数值都使用单引号括入,这使单引号中的内容成为了字符串。
Atoms must start with a lower case character, or you can delimit with single quotes.
原子值必须以小写字母开头,否则需要加上单引号。
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.
如果你只想输出一个基本的字符串,就用单引号吧,这样会节省一些资源。
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.
字符串用单引号限定,从而节省了PHP从字符串中搜索可替换的变量的时间。
For instance, did you notice that there were no single quotes around the array indexes ($x[sales] and $x[profit])?
比如,你有没有发现在数组索引里没有用引号将字符串括起来?
Because using single quotes disables a bash feature called expansion, where special characters and sequences of characters are replaced with values.
因为使用单引号禁用了称为扩展的bash特性,其中,特殊字符和字符系列由值替换。
SolidDB strings are delimited by single quotes.
soliddb字符串使用单引号分隔。
The third thing to notice is the use of single quotes to surround the 'd' command.
第三件要注意的事是括起'd'命令的单引号的用法。
To ignore a signal, use two single quotes in place of the command_list
要忽略某个信号,使用两个单引号代替 command_list
Passing the ENT_QUOTES argument to htmlspecialchars to ensure that single quotes (') are also escaped isn’t strictly necessary in this case, but it’s a good habit to get into.
将ENT_QUOTES标识传递给htmlspecialchars函数,从而保证单引号也会被转义。 虽然这并是最主要的,但也算是一个良好习惯。
Note that although the example might appear to use double quotes, it actually USES two single quotes before and after the comparison value (" Gold ").
注意,虽然这个例子看上去使用了双引号,但实际上它是在比较值(“ Gold ”)前后使用了两个单引号。
If the constraint has a message associated with it (through the message Id), the {0} variable in the message is substituted by the context element — unless it is between single quotes.
如果约束使用了一个消息关联(通过消息id),消息中的{0}变量就被上下文的元素所取代——处非它使用单引号括住。
In such cases, you can render the single quote harmless by using a regular expression or the String.Replace method to replace each instance of the single quote with two single quotes. For example.
在这种情况下,可以通过使用正则表达式或者String . Replace方法将每个单引号实例替换为两个单引号,使单引号无害。
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)."
在MySQL中,字符序列\表示一个反斜杠转移单引号',但在DB 2中,单引号必须要再加一个单引号来实现转义' '(即两个单引号)。
Ruby does not process any data in a string if you wrap it in single quotes.
Ruby不处理任何用单引号括起来的字符串信息。
Replace the single quotes used for the expr attribute with double quotes, and then escape the double quote (") characters to ".
用双引号代替expr属性中所用的单引号,然后将双引号(“)字符转义成”。
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."
例如,对于Apache您可以使用Mod_Security筛选器(比如secfilterselective THE_REQUEST “(\' | \ ”) “)查找字符串中的单引号和双引号并禁止它们。”
The extra single quotes are escape characters.
“额外” 的那个单引号是换码符。
If you use double quotes around your string-based query predicate, instead of pairs of single quotes, you'll get a syntax error.
如果在基于字符串的查询谓词周围使用双引号,而不是单引号,就会收到语法错误。
If the parameter is a character-based input parameter, then you would specify the literal value surrounded in single quotes.
如果参数是基于字符的输入参数,那么在单引号中指定字面值。
应用推荐