0
我嘗試了所有答案,但都沒有工作。但是,當我只使用一個列狀態或LGA時,代碼正在工作。當我將二者結合起來,你可以在查詢中發現下面我得到一個錯誤:SQL Server 2012中的where子句的內部聯接
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near ','.
請幫我
代碼:
SELECT [Community].[CommunityID],
[Community].[CommunityName],
[Community].[StateID],
[StateName] AS [StateName],
[Community.LGAID],
[LGA].[LGName] AS [LGName]
FROM [Community], [State]
WHERE ([Community].[StateID] = [State].[StateID], [LGA]
WHERE [Community].[LGAID] = [LGA].[LGAID]
請格式化您的公司de –