Advertisement
Guest User

Untitled

a guest
Mar 20th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. UPDATE image SET image_main = 1
  2. WHERE image_id = 0 AND product_id
  3. IN (SELECT product_id FROM image where image_main <> 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement