PDO::PARAM for type decimal?

前端 未结 4 614
余生分开走
余生分开走 2020-11-28 11:06

I have 2 database fields

`decval` decimal(5,2)
`intval` int(3)

I have 2 pdo queries that update them. The one that updates the int works ok

4条回答
  •  萌比男神i
    2020-11-28 11:24

    There isn't any PDO::PARAM for decimals / floats, you'll have to use PDO::PARAM_STR.

提交回复
热议问题