这是我的 SQL 语句:
N.File_Id = ServerFiles.Id WHERE [...]
'File_Id' 以粉红色突出显示,无论如何我可以覆盖它吗?我认为这就是为什么我的 SQL 没有返回结果集的原因。
谢谢
修改后的代码:
SELECT
N.Id, NLoc.N_Id, Loc.Id as Loc_Id,
CAST(N.Text AS TEXT) as Text, FilePath,
CAST(N.Title AS TEXT) as Title, N.CreatD as RegDate
FROM
NLoc
JOIN N ON NLoc.Not_Id = N.Id
JOIN Loc ON NLoc.Loc_Id = Loc.Id
JOIN ServerFiles ON N.File_Id = ServerFiles.Id
WHERE
Loc_Id IN (1)