略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: odbc_close_all

2024-12-22

odbc_close_all

(PHP 4, PHP 5, PHP 7, PHP 8)

odbc_close_allClose all ODBC connections

说明

odbc_close_all(): void

odbc_close_all() will close down all connections to database server(s).

参数

此函数没有参数。

返回值

没有返回值。

注释

注意:

This function will fail if there are open transactions on a connection. This connection will remain open in this case.

add a noteadd a note

User Contributed Notes 1 note

up
-3
alvaro at demogracia dot com
13 years ago
Apparently, it doesn't really close *all* connections; just those used by the current script.

If you are using persistent connections, every time a script does an odbc_pconnect() and all open connections are in use you'll get a new connection with the same credentials. You won't close them all with odbc_close_all().

官方地址:https://www.php.net/manual/en/function.odbc-close-all.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3