我正在尝试使用 cfquery 触发更新查询,如下所示
<cfquery name = "UpdateRecord"
dataSource = #DATASOURCE#
username = #DBUSER#
password = #DBPASSWORD#
result="updateResult" >
update table1
set field1=( select field1 from table2 where field3='Some Value')
where field4='someothervalue'
</cfquery>
<cfdump var="#UpdateResult#">
但是,当我执行这个页面时,页面没有加载,在状态栏中我可以看到它的加载很长时间。
但是如果我使用任何简单的更新查询,比如
update table1 set field1='abc' where field4='someothervalue'
然后它工作正常
任何人都知道如何使用 cfquery 执行上述查询吗?
谢谢