Is there a way in my sql to auto increment by the date and time?
so say I have a table
mytable ============================
Run this in your MySQL:
ALTER TABLE `mytable` CHANGE COLUMN `DateTime` `DateTime` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP ;
This sets your default value to CURRENT_TIMESTAMP.
CURRENT_TIMESTAMP