I am planning to create a attendance system in java mysql and am stuck in the date and time function. My question is how can i insert the date automatically to my database. My table looks like this:
Create table automatic
(
`id` int(20) NOT NULL AUTO_INCREMENT,
`name` varchar(500) NOT NULL,
`class` varchar(255) NOT NULL,
`remark` varchar(255) NOT NULL,//remarks suggest presnt or absent
`date` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB;