菜鸟刚学数据库,SQL 创建视图 提示语法错误 1064
如提问,创建视图的时候:createviewView_Employeesasselectgothamhospital.empolyees.Date_Hired,gotha...
如提问,创建视图的时候:create view View_Employeesas select gothamhospital.empolyees.Date_Hired,gothamhospital.people1.Namefrom gothamhospital.empolyees,gothamhospital.people1where gothamhospital.empolyees.People_Person_ID = gothamhospital.people1.People_Person_ID请教高手哪里出问题了呢,多谢大虾。
展开
2个回答
展开全部
create view View_Employees as
select gothamhospital..empolyees.Date_Hired,gothamhospital..people1.Name from gothamhospital..empolyees,gothamhospital..people1 where gothamhospital..empolyees.People_Person_ID = gothamhospital..people1.People_Person_ID
gothamhospital 是数据库名称的话,后面要加两个.如:gothamhospital..empolyees ;两个点之间可以加入架构名 没有的话就默认为dbo
select gothamhospital..empolyees.Date_Hired,gothamhospital..people1.Name from gothamhospital..empolyees,gothamhospital..people1 where gothamhospital..empolyees.People_Person_ID = gothamhospital..people1.People_Person_ID
gothamhospital 是数据库名称的话,后面要加两个.如:gothamhospital..empolyees ;两个点之间可以加入架构名 没有的话就默认为dbo
追问
还是同样的错误,不过真的谢谢你。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询