YOUNGCODGER
Programmer
Hi,
I have to update a row in a database table if it matches one of n values (approx 500 out of 10,000). The statement would be of the form ‘update table set table. rate = ’12.5’ where table.cust_id = ‘xxx’. ‘xxx’ is one of the 500 values. Obviously I do not want to write 500 update statements or a huge ‘or’ list. How can I tackle this?
Many thanks,
YoungCodger![[bigglasses] [bigglasses] [bigglasses]](/data/assets/smilies/bigglasses.gif)
I have to update a row in a database table if it matches one of n values (approx 500 out of 10,000). The statement would be of the form ‘update table set table. rate = ’12.5’ where table.cust_id = ‘xxx’. ‘xxx’ is one of the 500 values. Obviously I do not want to write 500 update statements or a huge ‘or’ list. How can I tackle this?
Many thanks,
YoungCodger
![[bigglasses] [bigglasses] [bigglasses]](/data/assets/smilies/bigglasses.gif)