Set the cursor to be a scrollable cursor using the PDO::ATTR_CURSOR attribute
使用PDO::ATTR_CURSOR属性将游标设置为可滚动游标
In terms of performance, the forward-only cursor is better than the scrollable cursor.
而在性能方面,只能前进的游标优于可滚动游标。
However, in some cases, you will need to read cursors both forward and backward, in which case you should use scrollable cursor.
但某些情况下,您需要游标既能向前又能向后,此时需要使用可滚动游标。
However, in some cases, you will need to read cursors both forward and backward, in which case you should use scrollable cursor.
但某些情况下,您需要游标既能向前又能向后,此时需要使用可滚动游标。
应用推荐