题目内容

下列ABCD注释标注的哪行代码有错误?importjava.sql.*;publicclassE{publicstaticvoidmain(Stringargs[]){Connectioncon=null;Statementsql;ResultSetrs;try{Class.forName("com.mysql.jdbc.Driver");//A}catch(Exceptione){}Stringuri="jdbc:mysql://localhost:3306/students?useSSL=true";//BStringuser="root";Stringpassword="";try{con=DriverManager.getConnection(uri,user,password);//C}catch(SQLExceptione){}sql=con.createStatement();//D}}

A. 选项A
B. 选项B
C. 选项C
D. 选项D

查看答案
更多问题

列哪个是正确的?(多选)A.在MySQL安装目录的bin子目录下键入mysqld或mysqld-nt启动MySQL数据库服务器。B.在MySQL安装目录的bin子目录下键入mysql启动MySQL数据库服务器。C.MySQL服务器默认占用的端口是3306。D.MySQL服务器的默认用户是root,密码为空(没有密码)。

A. 选项A
B. 选项B
C. 选项C
D. 选项D

下列哪些是正确的?(多选)A.SQL语句:select*frommesswhereheight>1.6andheight<=1.8是查询mess表中字段(列)height值在1.6和1.8之间的记录(记录的各个列值都要)。B.SQL语句select*frommesswherenamelike'%林%'是查询mess表中字段(列)name值等于“林”的记录(记录的各个列值都要)。C.SQL语句updatemesssetheight=1.77wherename='张三'是将mess表中name字段(列)值是张三的记录(行)的height的值更新为1.77。D.SQL语句insertintomessvalues('R1008','将林','2010-12-20',1.66),('R1008','秦仁','2010-12-20',1.66)是向表mess里添加了两条记录(两行)。

A. 选项A
B. 选项B
C. 选项C
D. 选项D

Directions: Listen to Recording 1.1. Complete these extracts.I think I was very ____(1)_____.I recently decided to take a ____(2)_____.Everyone at work says it’s not a very good ____(3)_____, but it’s what I want to do.

Directions: Listen to Recording 1.2. Complete these extracts.It’s been very difficult to get a start without much____(1)_____.The ____(2)_____ everybody talks about are not really happening for me.Maybe the problem is that I don’t have a ____(3)_____ in mind.

答案查题题库