odbc_tableprivileges()函數(shù)用來列出表以及與每個表關聯(lián)的權限
resource odbc_tableprivileges ( resource $connection_id , string $qualifier , string $owner , string $name )
列出請求范圍內(nèi)的表以及與每個表關聯(lián)的權限。
成功返回odbc結果標識符,否則返回false
| 序號 | 參數(shù)和說明 |
|---|---|
| 1 | connection_id 它包含有關連接標識符的信息 |
| 2 | qualifier 它包含有關限定符的信息 |
| 3 | owner 它包含有關所有者的信息 |
| 4 | name 它包含有關表名的信息 |
試試下面的實例
<?php
$input_ID = odbc_connect("DSN","user_id","pass_id");
$result = odbc_tableprivileges($input_ID,"Northwind","dbo","Employees");
odbc_result_all($result)
?>