Advertisement
Guest User

Untitled

a guest
Jul 28th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. delete from betclic_game_odd_choices where betclic_game_odds_id in (select id from betclic_game_odds where betclic_game_id in (select id from betclic_games where betclic_event_id in (select id from betclic_events where betclic_sport_id in (1,2,3,4))))
  2.  
  3. delete from betclic_game_odds where betclic_game_id in (select id from betclic_games where betclic_event_id in (select id from betclic_events where betclic_sport_id in (1,2,3,4)))
  4.  
  5. delete from betclic_games where betclic_event_id in (select id from betclic_events where betclic_sport_id in (1,2,3,4))
  6.  
  7. delete from betclic_events where betclic_sport_id in (1,2,3,4)
  8.  
  9. alter table ticket_games drop foreign key ticket_games_odd_id_foreign;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement