开发者

What all fetch modes are there for PDO?

开发者 https://www.devze.com 2023-01-15 08:24 出处:网络
I am just getting started using PDO. I am wondering if there is a list of all the available FETCH_* modes and what each does?

I am just getting started using PDO.

I am wondering if there is a list of all the available FETCH_* modes and what each does?

I found this page of the manuals that covers setFetchMode which even has this line in it:

The fetch mode must be one of the PDO::FETCH_* constants.

But I开发者_开发技巧 see nothing that lists what all is available?


http://www.php.net/manual/en/pdo.constants.php will tell you all he constants, including the fetch mode constants. You can also find more details in the PDOStatement::fetch documentation: http://www.php.net/manual/en/pdostatement.fetch.php

0

精彩评论

暂无评论...
验证码 换一张
取 消