Pdo为何把小弟我们int型都转换成string型了,能不能让他不转?

WBOY
Release: 2016-06-13 10:37:47
Original
772 people have browsed it

Pdo为何把我们int型都转换成string型了,能不能让他不转???


要设置什么参数??

这个设计是基于什么考虑???有点小坑爹啊



------解决方案--------------------
除了 false == 外,没有什么与数据类型的相关的
况且 false == 应写作 false === ,这样才真正与类型相关
------解决方案--------------------
从mysql数据库返回的查询结果都是文本,都会被当成字符串处理,因为PHP并不知道你的表结构。 mysqli和pdo都是这样!

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!