pdo free result

后端 未结 2 1604
忘了有多久
忘了有多久 2020-12-30 23:15

there is a mysql function in php called mysql_free_result(); I couln\'t find any similar function for PDO.

is there a pdo function to free the result of a database f

相关标签:
2条回答
  • 2020-12-30 23:55

    You can set the object variable to null. The GC will destroy the PDO Statement instance, I guess.

    0 讨论(0)
  • 2020-12-30 23:59

    closest method is close cursor for PDO statements.

    http://us.php.net/manual/en/pdostatement.closecursor.php

    0 讨论(0)
提交回复
热议问题