Advertisement
Guest User

Untitled

a guest
Apr 21st, 2014
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. DELETE FROM products_description AS t1 WHERE EXISTS (
  2. SELECT 'products_id', 'site_language_id'
  3. FROM products_description AS t2
  4. WHERE t2.products_id = t1.products_id
  5. AND t2.site_language_id = t1.site_language_id
  6. );
  7.  
  8. #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'as t1
  9. where exists (select 'products_id','site_language_id' from products_desc' at line 1
  10.  
  11. DELETE FROM products_description
  12. WHERE product_id IN (
  13. SELECT product_id FROM( Select product_id,site_language_id
  14. From products_description
  15. Group By product_id,site_language_id
  16. Having Count(*)>1
  17. ) As X
  18. )As Y
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement