它说:Msg 102,Level 15,State 1,Line 7 ')'附近的语法不正确。
with address_cte (id,Street,City,[State],ZIP,Country)
as
(
Select p.id, a.Street,a.City,a.[State],a.ZIP,a.Country
from People p
left join Address a on p.id = a.PeopleId
)
答案 0 :(得分:1)
您应该始终在select
之后使用insert
,delete
,update
或cte
语句。它不能独立存在。