我试图用更新查询CFQUERY像下面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的查询?
谢谢
是..它曾与PreserveSingleQuotes,感谢 – CFUser 2009-12-23 05:22:09
我同意jarofclay,现在,它的工作原理,下一步应该将其转换为使用cfqueryparam – kevink 2009-12-23 12:55:02