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文档。
Use parameterized queries or stored procedures to access a database as opposed to using string concatenation.
使用参数化查询或存储过程来访问数据库,而不是使用字符串连接。
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文档。
If a number is used in a string concatenation expression, for example, the number is converted to a string first.
例如,如果一个数字用在一个字符串连接表达式中,数字就会先转换为字符串。
You can build a HQL WHERE clause using either binding parameters or simple string concatenation; the decision impacts on performance.
既可以使用绑定参数构造HQL的WHERE子句,也可以使用字符串拼接的方法,该决定对性能会有一定影响。
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.
当使用动态字符串串联根据用户输入生成连接字符串时,可能发生连接字符串注入式攻击。
This warning indicates that a call to a string concatenation function is probably passing an incorrect value for the number of characters to concatenate.
此警告意味着在调用字符串串联函数时,所传递的表示串联字符数的值可能不正确。
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文档一般来说比较危险(参考资料中的一篇文章解释了这一点)。
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文档一般来说比较危险(参考资料中的一篇文章解释了这一点)。
应用推荐