关于关键字 'where' 附近的语法错误

ABOUT Incorrect syntax near the keyword 'where'

 string sqlstr=string.Format("insert into ocs_outages(tt_id,out_date,description) values('{0}','{1}','{2}') where 'tt_id' not in (select tt_id from ocs_outages)",dr[1], Convert.ToDateTime(dr[3]).ToString("yyyy-MM-dd HH:mm:ss"), dr[2]);

错误是 "Incorrect syntax near the keyword 'where'." 这里有什么问题?如何工作呢?

而且我需要告诉用户更新完成或更新失败。 我应该怎么办 ? 感谢花钱阅读它。 请原谅我糟糕的英语。

为什么要使用带有 WHERE CLAUSE 的 INSERT 语句?

INSERT用于新建行

如果要更新任何已创建的行,请使用 UPDATE 查询。

编辑:尝试这样的事情

IF NOT EXISTS (SELECT * FROM TABLE WHERE COLUMN = 'VALUE')
   INSERT INTO ocs_outages(tt_id,out_date,description) 
          VALUES('{0}','{1}','{2}')