mysql 给字段添加default

alter table  t_incoming_records modify  incomingtime datetime   default C
URRENT_TIMESTAMP;

注意:修改字段用关键字modify.

modify后的column可以省略。

refurl:http://doc.mysql.cn/mysql5/refman-5.1-zh.html-chapter/sql-syntax.html#alter-table

http://wandejun1012.iteye.com/admin/blogs/1813966

猜你喜欢

转载自wandejun1012.iteye.com/blog/1967622
今日推荐