java_connect_sql
2016-06-03 00:52:59 3 举报
qazwsxedc
作者其他创作
大纲/内容
Attempts to establish a connection with the data source that this DataSource object represents.
throw
interface
method
Returns:a connection to the data source
Returns:a new default Statement object
DataSource
javax.sql
Releases this Statement object's database and JDBC resources immediately instead of waiting for this to happen when it is automatically closed.
The object used for executing a static SQL statement and returning the results it produces.
getConnection()
Statement
connection
java.sql
getConnection(String username String password)
createStatement()
SQLException
close()
0 条评论
下一页