Home > Database > Mysql Tutorial > 科普下MYSQL字符串与数字比较

科普下MYSQL字符串与数字比较

WBOY
Release: 2016-06-07 14:57:38
Original
1159 people have browsed it

无详细内容 MySQL SELECT 'abc' = 0 返回的是1写WHERE时注意,不要拿varchar类型字段与0比较了。

MySQL
SELECT 'abc' = 0 
返回的是1
写WHERE时注意,不要拿varchar类型字段与0比较了。
Copy after login
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