<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#">
그러나, 아래 페이지가로드되지처럼 cfquery를 사용하여 발생하는 것을 시도하고있다
장기.
하지만 다음
update table1 set field1='abc' where field4='someothervalue'
원하는 간단한 업데이트 쿼리를 사용하는 경우는 잘 작동
수있는 사람이 어떻게 cfquery 등을 사용하여 위와 같이 쿼리를 실행할 수있는 아이디어가?
감사합니다.
예 .. PreserveSingleQuotes와 함께했습니다. 감사합니다. – CFUser
jarofclay에 동의합니다. 다음 단계는 cfqueryparam – kevink