mysql的not null 细节请教
比如这样的一条sql ddl语句:
password char(32) not null default "",//有md5
既然都定义了not null了,那么用户就强制必要添加密码了,那后面来个默认值是不是有点多余?而且我长度规定是32位,默认值是空,
感觉有not null 的时候,默认值,没有存在的必要,就算存在,他的值属性也不合字段的属性约定啊?求解!
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn