Home > Backend Development > PHP Tutorial > 关于mysql NULL的一个有关问题

关于mysql NULL的一个有关问题

WBOY
Release: 2016-06-13 13:15:52
Original
1031 people have browsed it

关于mysql NULL的一个问题
我把数据库table的filed1设置不为空,filed2字段设置为空 

然后插入一条数据,filed1='test' filed2不变

然后我写个查询语句
selct * from table where filed2=''为什么查询不到?
我改成 filed2=NULL还是不行

最后我把filed2结构设置不为空 又可以查询到了这是怎么回事啊?

------解决方案--------------------
filed2 is NULL 呢?

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template