DROP TABLE IF EXISTS ranges;
CREATE TABLE ranges (
id INT PRIMARY KEY,
start DATE,
end DATE,
UNIQUE KEY range_key(start, end)
);
INSERT INTO ranges VALUES (1, "2010-01-01", "2012-10-05");
SELECT * FROM ranges;
id	start	end
1	2010-01-01	2012-10-05
DELETE FROM ranges WHERE id = 1;
INSERT INTO ranges VALUES (1, "2010-01-01", "2012-10-05");
SELECT * FROM ranges;
id	start	end
1	2010-01-01	2012-10-05
DROP TABLE ranges;
