
odbc_tableprivileges()函数用来列出表以及与每个表关联的权限
语法
resource odbc_tableprivileges ( resource $connection_id , string $qualifier , string $owner , string $name )
定义和用法
列出请求范围内的表以及与每个表关联的权限。
返回值
成功返回odbc结果标识符,否则返回false
参数
| 序号 | 参数和说明 | 
|---|---|
| 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)
 ?>