SQL dot notation

前端 未结 3 803
孤城傲影
孤城傲影 2020-11-29 06:54

Can someone please explain to me how SQL Server uses dot notation to identify
the location of a table? I always thought that the location is Database.dbo.Table

3条回答
  •  眼角桃花
    2020-11-29 07:20

    When SQL sees the syntax it will first look at the current users schema to see if the table exists, and will use that one if it does. If it doesn't then it looks at the dbo schema and uses the table from there

提交回复
热议问题