java 执行在mysql中创建一张表 出现Table “****”already exists
代码如下:pStatement=con.prepareStatement("createtableExam(Idint(10)primarykey,Departmentv...
代码如下:
pStatement = con.prepareStatement("create table Exam(Id int(10) primary key,Department varchar(20),CourseName varchar(20)," +
"TeacherName varchar(20),CampusId varchar(20),Grade int(8),Faculty varchar(20),ClassName varchar(20),stsum int(4)," +
"Attribute int(4),Date varchar(10));");
pStatement.executeUpdate(); 展开
pStatement = con.prepareStatement("create table Exam(Id int(10) primary key,Department varchar(20),CourseName varchar(20)," +
"TeacherName varchar(20),CampusId varchar(20),Grade int(8),Faculty varchar(20),ClassName varchar(20),stsum int(4)," +
"Attribute int(4),Date varchar(10));");
pStatement.executeUpdate(); 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询