Use the Change Parameters window to map the Java™ parameter
to a corresponding SQL data type.
- In
- Specifies that the parameter is an input parameter that passes values
to the routine from the client application. Input parameters do not contain
a value when the routine returns control to the client application.
- Out
- Specifies that the parameter is an output parameter that returns values
from the routine to the client application. If a routine fails to set one
or more of the output-only parameters, the database does not detect the error
in the routine. Instead, the database returns the output parameters to the
client application with the values that were established when the routine
was started.
- InOut
- Specifies that the parameter is both an input and output parameter. Input
and output parameters can pass values to the routine from the client application
and return values from the routine to the client application.
- Java name
- Shows the Java name.
- SQL name
- Shows the SQL name.
- SQL type
- Select the SQL data type.
- Length
- Type a length for the selected SQL type. This option is available only
for the following SQL data types: BLOB, CHAR, CLOB, DBCLOB, GRAPHIC, VARGRAPHIC,
and VARCHAR.
- Unit
- Select a unit of size for the selected SQL data type. This option is available
only for the following SQL data types: BLOB, CLOB, and DBCLOB.
- Precision
- Type a number (between 1 and 31) for the total number of digits that the
value can contain. This option is available only for the following SQL data
types: DECIMAL, FLOAT, and NUMERIC. The precision of binary integers and decimal
numbers is the total number of binary or decimal digits, excluding the sign.
The precision of floating-point numbers is either single or double, which
refers to the number of digits in the fraction. The precision cannot be negative.
- Scale
- Type a number for the number of digits to the right of the decimal point.
This option is available only for the following SQL data types: DECIMAL, FLOAT,
and NUMERIC. The scale cannot be negative or greater than the precision. The
maximum precision is 31 digits. If you specify a scale, you must also specify
a precision. By default, the scale is 0.
- Comments
- Type comments.
- For bit data
- Specifies the bit data subtype for all character strings. Available only
for the following SQL data types: CHAR and VARCHAR. The bytes of a character
string with the bit data subtype do not represent characters. When you specify
this option, no character conversion is performed on character strings. Tip:
This option is useful when you are passing large binary strings, such as
encrypted passwords, to a routine.