本教程通过一系列简单的例子,阐释如何用标准 SQL SELECT 语句检索 IBM DB2 数据库中的数据。
Using a series of simple examples, this tutorial illustrates how to retrieve data from an IBM DB2 database with standard SQL SELECT statements.
在DB 2中,最后一个失败的sql语句的错误字符串可以通过使用GET DIAGNOSTICS语句检索,参见表4。
On DB2, the error string of the latest failed SQL statement can be retrieved using the GET DIAGNOSTICS statement, as shown in Table 4.
下面的sql语句将检索关于由供应商id介于某个范围的供应商所供应的商品的信息。
The following SQL statement will retrieve information about the items supplied by suppliers with the supplier IDs in a certain range.
应用推荐