Note
Kailangan ng pahintulot para ma-access ang page na ito. Maaari mong subukang mag-sign in o magpalit ng mga direktoryo.
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang baguhin ang mga direktoryo.
Creates a SQLServerStatement object that generates SQLServerResultSet objects with the given type and concurrency.
Syntax
public java.sql.Statement createStatement(int resultSetType,
int resultSetConcurrency)
Parameters
resultSetType
The int value representing the result set type. Use one of the following java.sql.ResultSet constants:
| Constant | Description |
|---|---|
ResultSet.TYPE_FORWARD_ONLY |
Cursor moves forward only. Best performance for sequential reads. |
ResultSet.TYPE_SCROLL_INSENSITIVE |
Scrollable result set that doesn't reflect changes made to the underlying data after the result set is created. |
ResultSet.TYPE_SCROLL_SENSITIVE |
Scrollable result set that reflects changes made to the underlying data. |
resultSetConcurrency
The int value representing the result set concurrency type. Use one of the following java.sql.ResultSet constants:
| Constant | Description |
|---|---|
ResultSet.CONCUR_READ_ONLY |
The result set can't be updated. |
ResultSet.CONCUR_UPDATABLE |
The result set can be updated by using positioned updates and deletes. |
Return value
The Statement object.
Exceptions
Remarks
This createStatement method is specified by the createStatement method in the java.sql.Connection interface.