View Single Post
Old 09-20-2016, 03:11 AM  
MKA
Hey...
 
MKA's Avatar
 
Industry Role:
Join Date: Nov 2011
Location: NL
Posts: 552
Eventually, this did the trick..

UPDATE A AS t1
INNER JOIN B AS t2
ON t1.content = t2.record_num
SET t1.views = 0
WHERE t2.enabled = 0;

It needed an extra value that was similar in both databases to get this working. (A.content=B.record_num)
MKA is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote