Is there a possibility of getting a unique timestamp value for for each record in MySQL??..
I created a sample table
CREATE TABLE t1 (id int primar
Yes if you don't do two or more inserts or edits during one second. Only problem is that a lot stuff can be done during a second, i.e. multiple inserts or automatic updates using a where clause. That rules out the simple solution to force unique timestamps: to add unique constraint into timestamp column.
Why should a timestamp be unique? Use auto increment or something else if you need unique index etc.
If you need more precise time values than timestamp, see:
double(13,3) makes it possible to add microtime into DB.)int multiplied with 100 or 1000 could also work. Here decimal is preferred over double.)