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

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

2.点击【确定】;

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

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

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

总结
到此这篇关于SQL Server数据库中已存在名为'student'对象的解决办法的文章就介绍到这了,更多相关SQLServer已存在名为student对象内容请搜索电脑手机教程网以前的文章或继续浏览下面的相关文章希望大家以后多多支持电脑手机教程网!