일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
- Kotlin
- Python
- hadoop
- 공정능력
- Eclipse
- 보조정렬
- JavaScript
- SQL
- xPlatform
- NPM
- GIT
- MSSQL
- table
- window
- react
- IntelliJ
- es6
- R
- Sqoop
- plugin
- SSL
- Express
- mybatis
- Spring
- Android
- vaadin
- mapreduce
- SPC
- tomcat
- Java
- Today
- Total
DBILITY
SQL Arrays in DB2 for i 7.1 본문
언젠가 사용할 지 몰라 붙여뒀다.
- Historically, to pass a list of values to or from an SQL procedure, you'd had a few options
- Use a long list of input and output parameters. Over time, the procedure's parameter list can become unbearably long and difficult to understand.
- Concatenate all the values together into one ad hoc "string" parameter. This requires more code to convert non-character types to character and back, and to construct and deconstruct the string. Unless the data is extremely simple, this approach is vulnerable to unexpected errors cropping up.
- Create a temporary table (perhaps via the DECLARE GLOBAL TEMPORARY TABLE statement) to be used by the procedure, or return the data in a result set. Although this can work well, it's the weakest approach from a performance standpoint.
Array support in DB2 for i 7.1 gives you more options in your procedures and data access code.
Arrays can be defined as parameters and variables for SQL procedures and external procedures written in Java.
Arrays can be passed from one procedure to another as IN and OUT parameters.
DB2 for i 7.1 supports new functions, specific to SQL procedures, which let you easily transform arrays to tables and tables to arrays.
By integrating arrays into the relational model, DB2 offers both performance and ease of use for array types.
Finally, release 7.1 will be good news for vendors and developers on other database systems that already support arrays.
The array support in DB2 for i 7.1 is compatible with the support offered in DB2 LUW 9.5.
The IBM Toolbox for Java JDBC drivers have been updated for IBM i 7.1 to support array parameters through the standard JDBC APIs.
The Database Monitor and Visual Explain tools also received enhancements to support application development with arrays.
'database > db2 for iseries' 카테고리의 다른 글
db2 dummy row generation sample (0) | 2021.11.30 |
---|---|
db2 [SQL0913] Row or object table in Schema type *FILE in use (0) | 2017.07.17 |
[SQL0901] SQL system error. Cause ..... (0) | 2016.10.13 |
A system restart is pending, you must restart the computer before installing IBM i Access (0) | 2016.09.28 |
CCSID (Coded Character Set IDentifiers) (0) | 2016.09.18 |