單項(xiàng)選擇題要使用java程序訪問數(shù)據(jù)庫,則必須首先與數(shù)據(jù)庫建立連接,該語句為()

A.Class.forName(“sun.jdbc.odbc.JdbcOdbcDriver”)
B.DriverManage.getConnection(“”,””,””)
C.Result rs= DriverManage.getConnection(“”,””,””).createStatement()
D.Statement st= DriverManage.getConnection(“”,””,””).createStaement()


您可能感興趣的試卷

你可能感興趣的試題

1.單項(xiàng)選擇題要使用java程序訪問數(shù)據(jù)庫,則必須首先與數(shù)據(jù)庫建立連接,在建立連接前,應(yīng)加載數(shù)據(jù)庫驅(qū)動(dòng)程序,該語句為()

A.Class.forName(“sun.jdbc.odbc.JdbcOdbcDriver”)
B.DriverManage.getConnection(“”,””,””)
C.Result rs= DriverManage.getConnection(“”,””,””).createStatement()
D.Statement st= DriverManage.getConnection(“”,””,””).createStaement()

2.單項(xiàng)選擇題若要取得數(shù)據(jù)包的中源地址,可使用下列哪個(gè)語句()?

A.getAddress()
B.getPort()
C.getName()
D.getData()