“create table student”改為“create table student_1”試試

解决方案 »

  1.   

    你在前面加上
     IF OBJECT_ID('student')  IS NOT NULL
    DROP TABLE student
    GO
    试试
      

  2.   

    这个提示很明显,数据库中已存在student这个表了,如果这个student表是正在使用的表,就修改create table student 为create table student_1,如果此表不要了,就用3楼的方法
      

  3.   


    正解正规写法, 任何schema 的创建都需要判断存在.
      

  4.   

    好吧,不水你了,补充一下,加上Use 库名,别乱搞了master的东西
      

  5.   

    之所以会报错,是因为你的数据库中,已经有student了,所以这个时候:drop table student 就好了