Home > Backend Development > PHP Tutorial > 关于PDO的bindParam的绑定浮点数的问题

关于PDO的bindParam的绑定浮点数的问题

WBOY
Release: 2016-06-23 13:28:55
Original
1550 people have browsed it

是关于bindParam的绑定问题,其有个参数是指定数据类型的,我看到有PARAM_STR、PARAM_INT等,却找不到PARAM_DOUBLE或PARAM_FLOAT这种浮点数的类型,如何是好呢?谢谢!


回复讨论(解决方案)

bool PDOStatement::bindParam ( mixed parameter, mixed &variable  [, int data_type [, int length [, mixed driver_options]]] )
被方括号括起的都是可省略参数
既然要不要都无所谓,那么又何必拘泥他呢?

貌似str包括浮??的。

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