Home  >  Article  >  Database  >  mysql里面没设置默认值字段也不允许为空,插入语句中也没指定值却能插入成功!是什么情况??

mysql里面没设置默认值字段也不允许为空,插入语句中也没指定值却能插入成功!是什么情况??

WBOY
WBOYOriginal
2016-06-06 09:42:231568browse

mysql

如题,我的表结构是这样的
图片说明

SQL语句:INSERT INTO test (name) VALUES ('lsq2')
图片说明

求大神帮忙!!

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