Sql 最简单的update语句是在'';?

Sql 最简单的update语句是在'';?,sql,sql-server,tsql,sql-server-2012,Sql,Sql Server,Tsql,Sql Server 2012,我在这方面得到了上述错误: Msg 102, Level 15, State 1, Line 3 Incorrect syntax near ' '. 我做错了什么?此错误是什么意思?update语句中没有“”,这意味着,在更新表活动时,会触发某些触发器。通过运行下面的查询,可以检查表上是否存在触发器 update activity set scheduledforuseridy=557   where datecompleted is null    and dateexpired is n

我在这方面得到了上述错误:

Msg 102, Level 15, State 1, Line 3
Incorrect syntax near ' '.

我做错了什么?此错误是什么意思?

update语句中没有“”,这意味着,在更新表活动时,会触发某些触发器。通过运行下面的查询,可以检查表上是否存在触发器

update activity
set scheduledforuseridy=557
  where datecompleted is null 
  and dateexpired is null 
  and scheduledforuseridy in (719,745,402) 
  and communityidy=4

表上有触发器吗?如何运行查询?
go
命令不是SQL,它只能在SQL Server Management Studio中使用。@Guffa感谢您将其删除clarity@MartinSmith如果文本包含一些非打印字符,则不会出现类似这样的奇怪错误。如果在新的查询窗口中从头开始重新键入整个查询,会怎么样?
select O.name as TableName,T.name as triggerName
from sys.triggers T
JOIN sys.objects O
ON T.object_id = O.object_id
and O.name = 'activity'