Binding Parameters vs. String concatenation.
2绑定参数vs .字符串拼接。
How smart is the compiler at optimizing string concatenation.
多聪明的编译器优化字符串连接。
Listing 2 shows a sample algorithm which creates such a key by string concatenation.
清单2显示了一个通过字符串串联创建此类键的示例算法。
It then USES string concatenation to create a complete, well-formed XML document from it.
然后使用字符串连接创建完整的、结构良好的XML文档。
It should generally not be used merely as a replacement for simple string concatenation. For example.
不应使用它取代简单的字符串连接。
Use parameterized queries or stored procedures to access a database as opposed to using string concatenation.
使用参数化查询或存储过程来访问数据库,而不是使用字符串连接。
We also have the added problem of duplicating the string concatenation using join(), which adds an extra second.
我们还添加了使用join()复制连接字符串的问题,这会额外增加1 秒的时间。
The print instruction emits the argument to standard output (stdout), and concat implements string concatenation.
print指令发出标准输出(stdout)的参数,且concat实现字符串连接。
If a number is used in a string concatenation expression, for example, the number is converted to a string first.
例如,如果一个数字用在一个字符串连接表达式中,数字就会先转换为字符串。
We are not using the unified programming model offered by WCF and the URL is hacked together using string concatenation.
我们并没有使用WCF提供的统一编程模型,而且URL也是通过字符串连接搞出来的。
Going back to Listing 14, once we have the list of entries, we then use some simple string concatenation to create an XML document.
返回到清单14,在拥有条目列表之后,使用某个简单的字符串连接来创建XML文档。
You can build a HQL WHERE clause using either binding parameters or simple string concatenation; the decision impacts on performance.
既可以使用绑定参数构造HQL的WHERE子句,也可以使用字符串拼接的方法,该决定对性能会有一定影响。
You'll also find some simplifications from C, which include string concatenation, associative array elements, and aggregation operators.
您还看到从C 语言带来的简化,其中包括字符串连接、关联数组元素和合并操作符。
Basically, if you're using simple string concatenation or string substitution to create SQL queries, it's likely you're headed for trouble.
基本上来说,如果您使用简单的字符串拼接或字符串替换操作来创建SQL查询,那么就很可能面临着问题。
Therefore, any operation on a string, including string concatenation, produces a new string object, rather than modifying an existing one.
所以,在字符串上的任何操作,包括字符串连接,都产生一个新的字符串对象,而不是更改一个存在的字符串。
A connection string injection attack can occur when dynamic string concatenation is used to build connection strings that are based on user input.
当使用动态字符串串联根据用户输入生成连接字符串时,可能发生连接字符串注入式攻击。
In this context, where this is the right-hand side of a String concatenation expression (using the plus sign), this.toString is invoked implicitly.
在这里的上下文中,this在一个String的链接表达式(使用加号)的右边,this . toString被隐式地调用了。
This warning indicates that a call to a string concatenation function is probably passing an incorrect value for the number of characters to concatenate.
此警告意味着在调用字符串串联函数时,所传递的表示串联字符数的值可能不正确。
For example, I could define an Array and then inadvertently attempt to do something numeric with it, or even some String concatenation, shown in Listing 7.
例如,先定义Array然后无意中尝试用于进行一些数字操作,甚至是一些string级联,如清单7所示。
This time, a string concatenation has occurred within the same method, and the input parameter is now bound to a String type argument at function execution time.
这次,相同方法内发生了字符串串联,并且现在输入参数在函数运行时受到String类自变量的限制。
Be aware that simple string concatenation can be a dangerous way to construct XML documents in general (see Resources for an article that expands on this point).
注意,使用简单的字符串连接构造XML文档一般来说比较危险(参考资料中的一篇文章解释了这一点)。
If you prefer not to use a long string concatenation statement like this, an alternative is to use the string formatting operator which enables you to have an expression like.
如果不喜欢使用这么长的字符串连接语句,另一种方法是使用字符串格式操作符,可以使用下面这样的表达式。
Concatenation is the process to sequentially join multiple pieces of data, usually literal strings with non-string-literal data (most commonly, variables or other literals).
连接操作是一个顺序的连接多个数据片段的过程,通常是连接字符串和非字符串数据(绝大多数是变量或其它字符)。
The printk function relies on a feature of the C language called string literal concatenation.
printk 是基于C语言中一个名为字符串逐字连接 的特性。
These functions do string copying and concatenation, but in a much less error-prone way. These functions' prototypes are.
这些函数执行字符串复制和拼接,不过更不容易出错。
The string version of concatenation requires strings you want to join to be copied to a new location, which is an o (n) operation.
String版本的连接操作要求将需要连接的两个字符串复制到新位置,这是一种O (n)操作。
The array concat function takes an array of strings as an input and returns a concatenation of the strings into a single string output.
arrayconcat函数获取一个字符串数组作为输入并在字符串输出中返回联接后的这些字符串。
By passing in an empty string as the separator, you can perform a simple concatenation of all elements in an array.
如果传递一个空字符串作为分隔符,你可以简单地将数组的所有元素连接起来。
The following example prints a combination of a local variable, system functions, and a text string using concatenation.
下面的示例使用串联打印局部变量、系统函数和文本字符串的组合。
How to concatenation values from string into value in variable?
如何从字符串串联值为值的变量?
应用推荐