Thread: SQL question
View Single Post
Old 07-06-2005, 02:45 AM  
WarChild
Let slip the dogs of war.
 
WarChild's Avatar
 
Industry Role:
Join Date: Jan 2003
Location: Bermuda
Posts: 17,263
Quote:
Originally Posted by Zester
what is wrong with this sql?

Code:
update `customers` set payout=100 where id=('234', '34', '102');
what i'm trying to do is set the payout to 100 to customers which ID is either 234, 34 or 102 in the shortest sql possible
UPDATE customers
SET payout = '100'
WHERE id IN ('234', '34', '102');
__________________
.

Last edited by WarChild; 07-06-2005 at 02:47 AM..
WarChild is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote