-
-
Save anonymous/c2d91f13d258948bbc5a to your computer and use it in GitHub Desktop.
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
CREATE TEMPORARY TABLE temp ( | |
id int unsigned primary key auto_increment, | |
user_id int unsigned, | |
start datetime, | |
end datetime | |
); | |
INSERT into temp (user_id, start, end) VALUES ( | |
1, 20130101, null | |
); | |
INSERT into temp (user_id, start, end) VALUES ( | |
1, 20120101, 20130201 | |
); | |
INSERT into temp (user_id, start, end) VALUES ( | |
2, 20130101, 20130201 | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment