Tony Carcieri wrote:
> 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.
WHERE
ID BETWEEN 100 AND 200
AND MOD(ID, 2) = 0
Jochem
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.