我在我的jsp project.mysql中创建了一个注册表作为数据库。我想在注册时间自动将系统日期插入到数据库中。
发布于 2010-05-07 14:01:17
看看mysql的Date and Time functions。这可能会对你有帮助。
发布于 2010-05-07 14:51:34
表中可以有一个"date_created“字段,定义如下
date_created timestamp not null default current_timestamp当您在忽略此列的表上执行插入操作时,它将自动设置为mysql服务器的当前时间。
https://stackoverflow.com/questions/2786402
复制相似问题