我想從一個表中選擇兩個字段。從一個表中選擇兩個字段
SELECT Book.Id,
Book.fristTitle,
Book.secondTitle,
Person.fName +' ' + Person.lName as author,
(Person.fName +' ' + Person.lName) as translator,
Subject.subjectTitle,
isbn,
editionNumber,
state,
type
FROM Book
INNER JOIN Subject ON Book.subjectId=Subject.Id
INNER JOIN Person ON Book.authorId=Person.Id
where Person.isAuthor=1
INNER JOIN Person ON Book.authorId=Person.Id
where Person.isTranslator=1
其中第一場是(Person.fName +' ' + Person.lName)
作爲作者和第二場是(Person.fName +' ' + Person.lName)
在圖書館數據庫翻譯
我搞不清楚「filde」是什麼意思。它是「行」嗎? – ChrisF
我假設他的意思是字段>欄。 –