View Single Post
Old 10-26-2009, 06:26 PM  
tiger
Confirmed User
 
tiger's Avatar
 
Industry Role:
Join Date: Apr 2002
Location: Los Angeles
Posts: 6,986
Anyone good with MySQL Queries?

I'm trying to write a query and I'm having some problems getting it to do what I want.

I want to compare columnA.commenter_id to all the values in columnB.user_id
if there is no columnA.commenter_id that corresponds to a columnB.user_id
then set columnA.commenter_id to = 999999.

Thanks in advance.
__________________

tiger is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote