0

我不是 ef 方面的专家,所以这几乎可以肯定是我的错,但这里是……

知道为什么这个 sp 被导入 ef,而 ef 说它没有输出吗?

SELECT TaxiAuthority.AuthorityID, [Cardiff_region_1].NAME
FROM [Cardiff_region] AS [Cardiff_region_1] INNER JOIN YourCompany_TaxiAuthority ON Cardiff_region_1].ID = TaxiAuthority.LALinkID WHERE geom.STIntersects(@point) = 1;
4

1 回答 1

1

SQL 不解析。你有:

SELECT  TaxiAuthority.AuthorityID, [Cardiff_region_1].NAME
FROM    [Cardiff_region] AS [Cardiff_region_1] 
        INNER JOIN YourCompany_TaxiAuthority ON Cardiff_region_1].ID = TaxiAuthority.LALinkID 
WHERE geom.STIntersects(@point) = 1;

TaxiAuthority不存在。尝试:

SELECT  TaxiAuthority.AuthorityID, [Cardiff_region_1].NAME
FROM    [Cardiff_region] AS [Cardiff_region_1] 
        INNER JOIN YourCompany_TaxiAuthority AS [TaxiAuthority] ON [Cardiff_region_1].ID = TaxiAuthority.LALinkID 
WHERE geom.STIntersects(@point) = 1;
于 2013-03-21T21:36:44.170 回答