dennis22
Programmer
- Oct 8, 2002
- 32
I am a newbie in CF, hoping someone can help me.
This is the code I use to update a certain field:
<cfif #sAction# EQ "delete">
<cfquery name="qryDelete" datasource="mydata">
UPDATE xtable SET REMARKS = 'DELETE' WHERE TRIM(xtable.fieldname) IN ('fieldname','#strSql#')
</cfquery>
</cfif>
where the strSql has a value of '01','02','03'
I tried to print it just to see what it looks like, so this one works;
UPDATE xtable SET REMARKS = 'DELETE' WHERE TRIM(xtable.fieldname) IN ('fieldname','01')
but this one doesn't
UPDATE xtable SET REMARKS = 'DELETE' WHERE TRIM(xtable.fieldname) IN ('fieldname','01','02')
tried this command in mysql, it worked!
I'm confused???
This is the code I use to update a certain field:
<cfif #sAction# EQ "delete">
<cfquery name="qryDelete" datasource="mydata">
UPDATE xtable SET REMARKS = 'DELETE' WHERE TRIM(xtable.fieldname) IN ('fieldname','#strSql#')
</cfquery>
</cfif>
where the strSql has a value of '01','02','03'
I tried to print it just to see what it looks like, so this one works;
UPDATE xtable SET REMARKS = 'DELETE' WHERE TRIM(xtable.fieldname) IN ('fieldname','01')
but this one doesn't
UPDATE xtable SET REMARKS = 'DELETE' WHERE TRIM(xtable.fieldname) IN ('fieldname','01','02')
tried this command in mysql, it worked!
I'm confused???