Skip to content

Instantly share code, notes, and snippets.

@hejrobin
Created July 30, 2020 07:53
Show Gist options
  • Save hejrobin/e67282e8181e8b6025a9c551d6bf1372 to your computer and use it in GitHub Desktop.
Save hejrobin/e67282e8181e8b6025a9c551d6bf1372 to your computer and use it in GitHub Desktop.
INSERT INTO `chapter` (`name`) VALUES ('Tjena');
SET @chapter_id = LAST_INSERT_ID();
INSERT INTO `user` (`email`) VALUES ('[email protected]');
SET @user_id = LAST_INSERT_ID();
INSERT INTO `membership` (`chapter_id`, `user_id`) VALUES (@chapter_id, @user_id);
--- repeat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment