I would like to prevent duplicate column values from being created within a certain time period, say somewhere between 1-60 seconds. Outside of that time window, the columns don't have have to be unique.
Is there a way to add a constraint on a couple mysql database columns and a datetime column +- 30 seconds.