You can use the default statement with enums and switches, just as you would expect. Listing 7 illustrates this usage
正如您所期待的,在使用枚举和switch时,您可以使用default语句。
Consider the code above and realize that any enumerated value not specifically processed by a case statement is instead processed by the default statement.
研究以上代码可以看出,任何没有被case语句处理的枚举值都会被default语句处理。
We will illustrate specifying REOPT NONE (default) and REOPT ALWAYS in applications for the statement in Listing 10 and will compare the results.
我们将在清单10介绍如何为应用程序语句指定REOPTNONE(默认)和REOPTALWAYS,并比较结果。
But whereas BMWs became the default choice of striving young professionals in the 1990s, buying a Saab was a statement of eccentric individualism-something utterly alien to GM's corporate culture.
但20世纪90年代,宝马成为努力奋斗的年轻专业人士的默认选择,购买萨博成为一种古怪的我行我素的代言——这完全与通用的企业文化相异。
This solution uses the SQL and XQuery editor (default option) to create the SQL statement.
该解决方案使用SQL和XQuery编辑器(默认选项)创建 SQL语句。
Jumping into a statement expression with goto or using a switch statement outside the statement expression with a case or default label inside the statement expression is not permitted.
不允许使用switch语句或是goto跳入到声明表达式中。
The default transactional behavior is auto-commit mode, where each statement is committed as it is sent to the target server.
默认的事务行为是自动提交模式。在该模式下,每个语句在发送到目标服务器时进行提交。
When prompted, accept the default for your project name and specify a name for your SQL statement.
当出现提示时,接受默认的项目名称,并为SQL语句指定一个名称。
If objects in another schema depend on an object being dropped, the default drop statement semantics apply.
如果另一个模式中的对象依赖于被删除的对象,那么应用默认的drop语句语义。
The SET EXPLAIN statement now supports an optional parameter to override the default name and location of the output file.
SETexplain语句现在支持一个可选的参数,用于覆盖输出文件的默认名称和位置。
This feature allows you to defer the compilation of a statement until real values are provided; there are three options: NONE (the default), ONCE, and ALWAYS.
该特性允许您推迟语句的编译,直到提供了实际的值。 一共有三个选项:NONE(默认)、ONCE和ALWAYS。
The user can use the CREATE TYPE MAPPING statement to override the default type mapping for procedure parameters.
用户可以使用CREATETYPEMAPPING语句覆盖过程参数的默认类型映射。
Accept the default for the statement type (SELECT) and elect to use the SQL builder.
接受默认的语句类型(SELECT)并选择使用SQL构建器。
But in DB2, you must provide a value for NOT NULL columns in an INSERT statement when a default hasn't been defined.
但在DB 2中,如果未定义该值,则必须在insert语句中为NOTnull列提供值。
Likewise, you might want to add assertions to else conditions in if blocks, where conditions are assumed, or to default cases of a switch statement, which should never be reached.
同样,您可能希望向if块中的else条件添加断言,这里已经设置了该条件,或者向switch语句中的缺省情况中添加断言,使缺省情况永远不可能到达。
If required, you can disable system default compression again by using an SQL statement, as in Listing 14 below.
必要时,可以使用下面清单14中的sql语句禁用系统默认值压缩。
For example, a programmer might include the assertion that you should never reach the default condition in a switch statement.
例如,程序员可能会在程序中包含断言,使您永远也不会到达switch语句中的default条件。
Rows that have not been updated since the ALTER TABLE statement will return the type default value for the column, which is midnight Jan 01, year 1.
自altertable语句之后未进行更新的行将返回列的类型默认值,该值为0001年1月1日午夜。
Throughout this series, you've written (output) data using the print statement, which by default writes the expression as a string to the screen (or console window).
贯穿整个系列,一直用print语句写入(输出)数据,它默认把表达式作为string写到屏幕上(或控制台窗口上)。
You can either set a transform manually using the set CURRENT default transform group statement, or you rely on the already established default transform group DB2_PROGRAM.
可以使用SETCURRENTDEFAULTTRANSFORMgroup语句手动设置转换,也可以依靠已经建立的默认转换组DB 2 _ PROGRAM。
The default JAAS permission statement has the following format
缺省JAAS许可权语句的格式如下
This is significant because by default, this would cause the CREATE or REPLACE VIEW statement to fail with an SQL0440N error.
这一点非常重要,因为在默认情况下,这将造成CREATEOR REPLACEview语句失败,并发生SQL 0440n错误。
This is important in Python programs because file input and output are, by default, buffered; data isn't written as soon as you call a print statement but is instead written in chunks.
在Python程序中这很重要,因为在默认情况下,文件输入和输出是缓冲的;在调用print语句时,数据实际未被写入;相反,数据是成批写入的。
Low: This tracing level, which is enabled by default, captures statement statistics, statement text, and statement iterators.
Low:此跟踪级别是默认级别,它捕捉语句统计数据、语句文本和语句迭代器。
By default, ALL is implicitly assumed, and you can use only one DISTINCT qualifier per SELECT statement.
默认情况下,ALL是隐式指定的,并且每个select语句只可以使用一个DISTINCT限定符。
This changes the SQL statement required to issue the query, and it changes the default mapping of results to the Customer data bean.
这改变了用于发出查询的SQL语句,也改变了从结果到Customer数据bean 的默认映射。
When you enable this new CS behavior (it is the default behavior for new DB2 9.7 databases), the statement from AppB returns the currently committed value, instead of waiting.
如果启用这个新的CS行为(在新的DB 2 9.7数据库中这是默认行为),AppB发出的语句返回当前提交的值,而不需要等待。
You need to add to your PATH statement the snort executable, which is located in c: \ snort \ bin \ snort.exe (assuming you chose the default installation directory).
您需要将snort可执行文件添加到path语句之中,它的位置是C: \ snort \bin \ snort . exe(假设您选择的是默认安装目录)。
Merkel and Sarkozy "listened" to the views of ECB President Trichet though the statement didn't say if they settled differences on whether Greece should be allowed to default.
尽管默克尔和萨科齐“听取”了欧洲央行行长特里谢的意见,但声明并没有说他们是否已经解决了希腊是否应该被允许违约的差异。
Then, the paper selects 15 listed companies, analyzes their "Distance to Default" using their stock prices and their financial statement data, and compares their credit status.
选取了1 5家上市公司,使用其股票价格历史数据和财务报表数据计算各家公司的“违约距离”,从而对它们的信用状况进行比较。
应用推荐