Answers for "update having mysql"

SQL
0

update having mysql

UPDATE contacts_domains cd, 
 (SELECT id FROM contacts_domains GROUP BY domain_id
   HAVING COUNT(contact_id) = 1) AS cdtmp
SET cd.dominant = 1
WHERE cd.id = cdtmp.id
Posted by: Guest on October-24-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language