Created
August 27, 2015 17:03
-
-
Save vansosnin/55dd8f7a8be7726e31f4 to your computer and use it in GitHub Desktop.
Mass insert into many-to-many table
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSERT INTO users_orders(user_id, order_id) SELECT users.id, orders.id FROM baget JOIN orders |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment