我收到错误“关键字 'truncate' 附近的语法不正确”。并且不确定这里的语法有什么问题,这对我来说并不明显......可能有些愚蠢但我需要另一双眼睛:
ALTER VIEW [dbo].[vw_All_Events]
AS
truncate table Event
Select [event_id]
,[site_id]
,[autogenerated]
,[creation_date]
,[last_update_date]
from Event
GO