新手,学习的网上例子,在第一次新建表时,执行无错误;第二次再次执行就报错:数据库中已存在名为‘student’的对象。说明了这个名为‘student’的表已经建立,如果要再次新建表,就得把旧的表删除后重新执行。如果表已经设置好各项参数了,建议还是不要删掉哈,不然又得重新录入数据。
问题:

解决:
1.【删除】旧表;

2.点击【确定】;

3.对数据库进行【刷新】;

4.重新执行语句,就会重新生成名为‘student’的表,发现表名还是出现了红色波浪线;

5.在窗口空白处点击右键,选择【IntelliSense已启用】,就可解决红色波浪线问题。