MySQL建表,设置字段自动获取当前时间

CREATE TABLE comment_user (
user_account VARCHAR (60),
user_name VARCHAR (60),
comment_content VARCHAR (500),
comment_time TIMESTAMP not NULL DEFAULT CURRENT_TIMESTAMP

);

猜你喜欢

转载自feifeiwoye.iteye.com/blog/2220242