存在actor表,包含如下列信息: CREATE TABLE IF NOT EXISTS actor (

在last_update后面新增加一列名字为create_date

http://www.nowcoder.com/questionTerminal/119f04716d284cb7a19fba65dd876b03

向表中添加列

alter table table_name add col_name char(5);

答案:

alter table actor add create_date datetime not null default('0000-00-00 00:00:00');
全部评论

相关推荐

迷茫的大四🐶:只有花了钱才能吃一堑长一智
点赞 评论 收藏
分享
评论
3
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务