Django Book 翻译
菜单>:
TOC
返回
原文:
However, its also possible to add columns that cannot contain NULL values. To do this, you have to create the column as ``NULL`` , then populate the columns values using some default(s), and then alter the column to set the ``NOT NULL`` modifier. For example:
翻译:
当然,也可以在添加字段时设置值不能为NULL。要实现这个,你不得不先创建一个 ``NULL`` 字段, 使用缺省值,再修改字段到 ``NOT NULL`` 。例如:
备注:
译者: