[英]The multi-part identifier “DB1..Students.studentnumber” could not be bound
SELECT
(SELECT Grade
FROM DB2..Students
WHERE DB2..Students.studentnumber=DB1..Students.studentnumber
AND ISNULL(Students.Disable,'') != 'T'
) as test,* from DB2..Students
WHERE studentnumber IN
( SELECT studentnumber FROM DB2..Students where
AND ISNULL(studentnumber,'') !=''
AND ISNULL(Students.Disable,'') != 'T'
)
怎么了?
我收到一個錯誤:“無法綁定多部分標識符“ DB1..Students.studentnumber”。”
請幫忙
謝謝
您似乎正在使用兩個名為“學生”的表。 DB1中的一個,DB2中的一個。 您在WHERE子句中引用DB1..Students,但在FROM子句中未引用。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.