此题为判断题(对,错)。
第1题:
此题为判断题(对,错)。
第2题:
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、以上说法都不对
第3题:
此题为判断题(对,错)。
第4题:
此题为判断题(对,错)。
第5题:
A.mysql_open("localhost");
B.mysql_connect("localhost");
C.connect_mysql("localhost");
D.dbopen("localhost");
第6题:
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";
第7题:
MYSQL可以通过以下方式中的( )连接数据库。
A.ODBC
B.ADO.NET
C.ADO
D.JDBC
第8题:
MySQL的系统变量值不可以更改。( )
此题为判断题(对,错)。
第9题:
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;
第10题:
如果想取得mysql数据库系统的运行状态,应该用什么函数?()
第11题:
对
错
第12题:
建立数据库连接时,必须加载驱动程序,可采用Class.forName()实现
用于建立与某个数据源的连接可采用DriverManager类的getConnection方法
建立数据库连接时,必须要进行异常处理
JDBC中查询语句的执行方法必须采用Statement类实现
第13题:
此题为判断题(对,错)。
第14题:
此题为判断题(对,错)。
第15题:
A、oracle.jdbc.driver.OracleDriver
B、sun.jdbc.odbc.JdbcOdbcDriver
C、com.microsoft.jdbc.sqlserver.SQLServerDriver
D、com.mysql.jdbc.Driver
第16题:
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.sql
B.Mysql> INSERT INTO t1 VALUES FROM ‘/tmp/t1.sql‘
C.$ mysql – u root – p – h localhost test < /tmp/t1.sql
D.Mysql> LOAD DATA INFILE ‘/tmp/t1.sql‘ INTO TABLE t1
E.$ mysqlinport – u root – p – h localhost test /tmp/t1.sql
第17题:
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";
第18题:
此题为判断题(对,错)。
第19题:
sql是MySQL专用的数据库查询语言。( )
此题为判断题(对,错)。
第20题:
此题为判断题(对,错)。
第21题:
关于JDBC访问数据库的说法错误的是:()
第22题:
修改MySQL用户root的密码的指令是()。
第23题:
$ mysqladmin – u root – p – h localhost test – restore /tmp/t1.sql
Mysql> INSERT INTO t1 VALUES FROM '/tmp/t1.sql'
$ mysql – u root – p – h localhost test < /tmp/t1.sql
Mysql> LOAD DATA INFILE '/tmp/t1.sql' INTO TABLE t1
$ mysqlinport – u root – p – h localhost test /tmp/t1.sql