网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
DriverManager类的getConnection()方法,其第一个参数为:jdbc:mysql://localhost:3306/test 则表明,是在连接MySql数据库系统。()
此题为判断题(对,错)。
参考答案
更多 “ DriverManager类的getConnection()方法,其第一个参数为:jdbc:mysql://localhost:3306/test 则表明,是在连接MySql数据库系统。() 此题为判断题(对,错)。 ” 相关考题
考题
关于DriverManager类下列哪些程序段是正确的?()
A、Class.forName("org.gjt.mm.mysql.Driver");B、DriverManager.registerDriver(neworg.gjt.mm.mysql.Driver());C、Class.forName(neworg.gjt.mm.mysql.Driver());D、DriverManager.registerDriver("org.gjt.mm.mysql.Driver");E、以上说法都不对
考题
下列哪个是MySQL的JDBC驱动程序()。
A、oracle.jdbc.driver.OracleDriverB、sun.jdbc.odbc.JdbcOdbcDriverC、com.microsoft.jdbc.sqlserver.SQLServerDriverD、com.mysql.jdbc.Driver
考题
In a test database, you issue the SELECT … INTO OUTFILE statement to create a file with your t1 table data. You then TRUNCATE this table to empty it.()Mysql> SELECT * INTO OUTFILE ‘/tmp/t1.sql‘ from t1;mysql> TRUNCATE t1;A.$ mysqladmin – u root – p – h localhost test – restore /tmp/t1.sqlB.Mysql> INSERT INTO t1 VALUES FROM ‘/tmp/t1.sql‘C.$ mysql – u root – p – h localhost test < /tmp/t1.sqlD.Mysql> LOAD DATA INFILE ‘/tmp/t1.sql‘ INTO TABLE t1E.$ mysqlinport – u root – p – h localhost test /tmp/t1.sql
考题
连接 MySQL 数据库的正确方法是()
A.mysql_open("localhost");B.mysql_connect("localhost");C.connect_mysql("localhost");D.dbopen("localhost");
考题
在模型层中,下列()负责连接数据库
A.Class.forName("oracle.jdbc.OracleDriver");B.conn=DriverManager.getConnection(url,username,userpwd);C.stmt=conn.prepareStatement(sql);D.privateStringurl="jdbc:oracle:thin:@localhost:1521:orcl";
考题
在模型层中,下列()负责加载驱动类
A.Class.forName("oracle.jdbc.OracleDriver");B.conn=DriverManager.getConnection(url,username,userpwd);C.stmt=conn.prepareStatement(sql);D.privateStringurl="jdbc:oracle:thin:@localhost:1521:orcl";
考题
In a test database, you issue the SELECT … INTO OUTFILE statement to create a file with your t1 table data. You then TRUNCATE this table to empty it.() Mysql> SELECT * INTO OUTFILE '/tmp/t1.sql' from t1; mysql> TRUNCATE t1;A、$ mysqladmin – u root – p – h localhost test – restore /tmp/t1.sqlB、Mysql> INSERT INTO t1 VALUES FROM '/tmp/t1.sql'C、$ mysql – u root – p – h localhost test < /tmp/t1.sqlD、Mysql> LOAD DATA INFILE '/tmp/t1.sql' INTO TABLE t1E、$ mysqlinport – u root – p – h localhost test /tmp/t1.sql
考题
关于JDBC访问数据库的说法错误的是:()A、 建立数据库连接时,必须加载驱动程序,可采用Class.forName()实现B、 用于建立与某个数据源的连接可采用DriverManager类的getConnection方法C、 建立数据库连接时,必须要进行异常处理D、 JDBC中查询语句的执行方法必须采用Statement类实现
考题
修改MySQL用户root的密码的指令是()。A、mysqladmin -u root password testB、mysql -u root password testC、mysql -u root -p testD、mysql -u root -password test
考题
多选题In a test database, you issue the SELECT … INTO OUTFILE statement to create a file with your t1 table data. You then TRUNCATE this table to empty it.() Mysql> SELECT * INTO OUTFILE '/tmp/t1.sql' from t1; mysql> TRUNCATE t1;A$ mysqladmin – u root – p – h localhost test – restore /tmp/t1.sqlBMysql> INSERT INTO t1 VALUES FROM '/tmp/t1.sql'C$ mysql – u root – p – h localhost test < /tmp/t1.sqlDMysql> LOAD DATA INFILE '/tmp/t1.sql' INTO TABLE t1E$ mysqlinport – u root – p – h localhost test /tmp/t1.sql
考题
单选题关于JDBC访问数据库的说法错误的是:()A
建立数据库连接时,必须加载驱动程序,可采用Class.forName()实现B
用于建立与某个数据源的连接可采用DriverManager类的getConnection方法C
建立数据库连接时,必须要进行异常处理D
JDBC中查询语句的执行方法必须采用Statement类实现
热门标签
最新试卷