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.
如果不喜欢使用这么长的字符串连接语句,另一种方法是使用字符串格式操作符,可以使用下面这样的表达式。
With the second puts statement (puts stands for put string), Ruby processes two substitutions.
在第二个puts语句中(puts代表putstring),Ruby处理了两次替换。
After that is another alignment statement for the beginning of the string that gives your output.
这之后是另一个用来对齐输出字符串起始位置的对齐语句。
After establishing a database connection, create a simple string for your INSERT statement.
在建立数据库连接之后,为insert语句创建一个简单的字符串。
Ideally, the string of characters should have a substring such as error or something similar (see the statement in bold blue), which will allow the tester to quickly find the error in the output file.
较理想的做法是,字符串有一个如error或与之相似的子串(见蓝色粗体的语句),这个子串允许测试者很快地在输出文件中查找到错误。
It then USES its parent request to find the right database statistics based on the connection's description, and to find statement statistics based on the SQL key string.
然后它用它的双亲请求,根据连接的描述找到正确的数据库统计值,并根据sql键字符串找到语句统计值。
To generate user errors from procedures, you can use the SQLERROR variable to return an actual error string that caused the statement to fail to the calling application, as shown in Listing 16.
要从过程生成用户错误,可以使用SQLERROR变量检索一个实际的错误字符串,该错误字符串使语句无法作用于调用应用程序,如清单16所示。
This variable contains the error string from the last failed SQL statement.
该变量包含最后一个失败的sql语句的错误字符串。
Declaring the statement as a string variable when you develop your application makes it easier to convert to a production application.
开发应用程序时将语句声明为字符串变量使得将应用程序转换成生产应用程序更加容易。
SQLERROR of the last cursor is returned, and the error string of the latest failed SQL statement is stored into variable SQLERRSTR.
最后一个游标的SQLERROR被返回,而最后一个失败的sql语句的错误字符串将被存储到变量SQLERRSTR中。
This converts the character string contained within or passed into the function to a correct SQL statement.
这将把函数内包含的或传递到函数中的字符串转换为正确的sql语句。
This function takes a string value as input which is a valid SQL full select statement.
此函数将一个字符串值作为输入,该字符串是一个有效的SQL全选择语句。
In SQL programming, a string containing any (mathematical) formula can be converted into an executable SQL statement with the SQL command PREPARE.
在SQL编程中,可以使用SQL命令PREPARE将含有任何(数学)公式的字符串转换成可执行的sql语句。
The key (or keys) are used to replace the parameter marker (or markers) which were defined as part of the SQL statement string created in the RPG HANDLE_OPEN sub-procedure.
这个键(或多个键)用于替代这个参数标记(或多个标记),参数标记被定义为在RPG handle_open子过程中创建的sql语句字符串的一部分。
The? (question mark) literal in the statement string is a parameter marker that represents the variable in which the result is returned.
语句字符串中的?(问号)是一个参数标识,代表用来返回结果的变量。
The print statement in Line 8 is another of those string formatting operations that was discussed earlier.
第8行中的打印语句也是前面讨论过的字符串格式操作。
On DB2, the error string of the latest failed SQL statement can be retrieved using the GET DIAGNOSTICS statement, as shown in Table 4.
在DB 2中,最后一个失败的sql语句的错误字符串可以通过使用GETDIAGNOSTICS语句检索,参见表4。
The whole INSERT statement is converted from the client code page to the database code page, and then the XMLPARSE document string is converted to UTF-8 for parsing into XML.
整个insert语句被从客户机代码页转换到数据库代码页,然后XMLPARSE文档字符串被转换到utf - 8,以便解析为XML。
When creating a prepared statement (including a callable statement), the SQL string argument is captured at creation time.
在创建预备语句(包括可调用语句)时,在创建时捕捉到SQL字符串参数。
In this statement, however, at least some of the values to which + is applied are string data rather than the numeric data on which addition is defined.
不过在这条语句当中,+的一些参数不是加法所定义的整数,而是字符串。
The query string contains a simple SQL statement to select all contact information for a specific client.
query字符串包含一个简单的sql语句来选择指定客户的所有联系信息。
Well, the first define statement creates a string constant called ASTRING in the test namespace.
第一个define语句在名称空间 test 中创建一个字符串常量ASTRING。
Both blocks of code evaluate an int value using a switch statement that results in a human-readable string value printed to the console.
这两个代码块都会使用switch语句计算int值,从而得到输出到控制台的供人阅读的字符串值。
The variant with the PreparedStatement is more elegant regarding the coding, as no string arithmetic is required to put the values for STATE and TYPE in the SQL statement.
使用 PreparedStatement 的那种代码片段在编码方面更为优雅,因为在将STATE和TYPE的值置入SQL语句时,不需要进行字符串运算。
To ignore all records that contain the string 'xnpd', one could use the following awk statement
要忽略包含字符串'xnpd' 的所有记录,可以使用以下 awk 语句
In case you haven't seen this before, a formatted print statement applies a format string to subsequent data to create specially formatted output.
您可能以前没有看到过这种打印方式,格式化print语句将把一个格式字符串应用到后续数据中以创建特定格式的输出。
The innermost print statement utilizes a new concept, called string formatting to create a nicely formatted table.
最里面的print语句使用了一个名为字符串格式化的新概念来创建格式设置精美的表。
The embedded SQL statement casts the manager names in the unit table into an XML type (in this case into an XML string), and feeds them into the XQuery.
嵌入式sql语句将unit表中的主管姓名强制转换为xml类型(本例中为xml字符串),然后将其提供给XQuery。
Ordernames (string) is the SQL order by clause of a Select statement.
Ordernames(字符串)是Select语句的SQLorderby子句。
The foreach statement, instead of setting domain attribute values from a SQL result set, stuffs the string TODO: set from SQL result into each element of the array of field values.
foreach语句,不是设置来自sql结果集的域属性值,而是将字符串TODO:setfrom sqlresult填塞到字段值数组的每个元素。
应用推荐