How about....

WHERE (ID BETWEEN 100 AND 200) AND (ID MOD 2 = 0)


Matthew Walker 
http://www.matthewwalker.net.nz




> -----Original Message-----
> From: Tony Carcieri [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 10 October 2002 9:54 a.m.
> To: CF-Talk
> Subject: OT: SQL Question
> 
> 
> Hi all,
> 
> Here's what I want to do:
> UPDATE tablename
> SET column = 0
> WHERE ID = ???????
> 
> I want to specify a range of numbers (like 100-200) and 
> increment it by 2.
> So, 100, 102,104etc would only be updated and the rest wouldn't.
> 
> Any ideas?
> Thanks,
> T
> 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Reply via email to