ITeye博客

mysql 字段设置默认值

oliverjonas · 2012-09-06 12:06 · 数据库课程设计-web版 · 数据库 · Markdown

如何在mysql里设置字段的默认值:

建表时:create table tablename (columnname datatype default defaultvalue);
已建表修改:alter table tablename alter column columnname set default defaultvalue

原文章:http://www.allniu.com/show.php?contentid=148

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。