<p>我曾使用flask SQLAlchemy在数据库中映射一个名为Proposal的表,但是在从应用程序插入数据库时遇到了一个问题。错误如下:</p>
<pre><code>sqlalchemy.exc.ProgrammingError: (pyodbc.ProgrammingError) ('42000', "[42000]
[Microsoft][ODBC SQL Server Driver][SQL Server]The target table 'Proposal' of
the DML statement cannot have any enabled triggers if the statement contain an
OUTPUT clause without INTO clause. (334) (SQLExecDirectW); [42000] [Microsoft]
[ODBC SQL Server Driver][SQL Server]Statement(s) could not be prepared
</code></pre>
<p>数据库为MSSQL类型。在</p>
<p>SQLAlchemy生成的sql语句是</p>
^{pr2}$
<p>我知道当我禁用触发器时,insert可以工作,但是我需要一个sqlalchemy中的解决方案来解决这个问题?在</p>
<p>有什么办法吗?</strong></p>