odbc_free_result()函數(shù)與結果關聯(lián)的可用空閑資源
bool odbc_free_result ( resource $result_id )
與結果關聯(lián)的空閑資源。
只有當您擔心在腳本運行時使用太多內存時,才需要調用odbc_free_result()。 當腳本完成時,所有結果內存將自動釋放。
它總是返回true
序號 | 參數(shù)和說明 |
---|---|
1 | result_id 結果標識符 |
試試下面的實例
<?php $input_ID = odbc_connect("DSN","user_id","pass_id"); $result = odbc_exec($input_ID,"SELECT * FROM Products ORDER BY ProductName"); odbc_free_result($result); ?>