题目内容

以下哪个是正确的JDBC连接字符串?()Which of the following is the correct JDBC connection string?()

A. jdbc:mysql:/localhost/3306/mydb
B. jdbc:mysql://localhost:3306/mydb
C. jdbc//mysql:/localhost:3306/mydb
D. jdbc:mysql://localhost/3306/mydb

查看答案
更多问题

以下哪个是常用的MySQL JDBC驱动程序?()Which of the following is a commonly used MySQL JDBC driver?()

A. com.mysql.cj.jdbc.Driver
B. mysql.com.cj.jdbc.Driver
C. com.mysql.JDBCDriver
D. com.mysql.jdbc.cj.jDriver

在JDBC中,要实现事务的回滚,可以调用Connection的方法()。In JDBC, to roll back a transaction, you can call the connection method ().

A. restore()
B. goback()
C. commit()
D. rollback()

在MySQL数据库中,以下哪条语句能获得前10条记录?()In MySQL database, which of the following statements can obtain the first 10 records?()

A. select * from mytable top 10 ;
B. select * from mytable 10 top;
C. select * from mytable limit 10;
D. select * from mytable 10 limit ;

以下哪个表示预编译语句对象?()Which of the following represents a precompiled statement object?()

A. PrecompileStatement
B. PrecompiledStatement
C. PrepareStatement
D. PreparedStatement

答案查题题库