When I have this in my ACTION/INSERT page to insert data
can I use WHERE in my INSERT statement ?
<CFLOOP from=1 to=5 index="loopcount">
<CFSET currF="fname#loopcount#">
<CFSET currL="lname#loopcount#">
<Cfquery name="addjcode" datasource="Timesheets">
Insert into Jobcodes (Fname, Lname)
VALUES('#evaluate(currF)#', '#evaluate(currL)#')
</cfquery>
</CFLOOP>
I would like to say WHERE PRIKEY=1
but its not letting me do it ...
please help !!
'
thanks
can I use WHERE in my INSERT statement ?
<CFLOOP from=1 to=5 index="loopcount">
<CFSET currF="fname#loopcount#">
<CFSET currL="lname#loopcount#">
<Cfquery name="addjcode" datasource="Timesheets">
Insert into Jobcodes (Fname, Lname)
VALUES('#evaluate(currF)#', '#evaluate(currL)#')
</cfquery>
</CFLOOP>
I would like to say WHERE PRIKEY=1
but its not letting me do it ...
please help !!
'
thanks