共用方式為


createStatement Method (int, int, int)

Creates a SQLServerStatement object that generates SQLServerResultSet objects with the given type, concurrency, and holdability.

public java.sql.Statement createStatement(int nType,
                                          int nConcur,
                                          int nHold)

參數

resultSetType

The int value that represents the result set type.

nConcur

The int value that represents the result set concurrency type.

nHold

The int value that represents the holdability.

傳回值

The Statement object.

例外狀況

SQLServerException

備註

This createStatement method is specified by the createStatement method in the java.sql.Connection interface.

另請參閱

參考

SQLServerConnection Class

概念

createStatement Method (SQLServerConnection)
SQLServerConnection Methods
SQLServerConnection Members