MYSQL没有该功能,你在插入的时候指定就可以了
服务器时间:
php:date("Y-m-d H:i:s");
mysql: now();
客户端时间:
用JS
now = new Date();
d = [now.getFullYear(),now.getMonth()+1,now.getDate()];
t = [now.getHours(),now.getMinutes(),now.getSeconds()];
alert(d.join("-")+ " " +t.join(":"));
服务器时间:
php:date("Y-m-d H:i:s");
mysql: now();
客户端时间:
用JS
now = new Date();
d = [now.getFullYear(),now.getMonth()+1,now.getDate()];
t = [now.getHours(),now.getMinutes(),now.getSeconds()];
alert(d.join("-")+ " " +t.join(":"));
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货