note 109231 added to function.db2-table-privileges
| From: | andryzulfikaratgmaildotcom | Date: | Thu, 28 Jun 2012 07:52:22 +0000 |
| Subject: | note 109231 added to function.db2-table-privileges | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-188951@lists.php.net to get a copy of this message | ||
<?php
// using db2_table_privileges example:
$result = db2_table_privileges($conn,NULL,'DB2ADMIN');
while($obj = db2_fetch_object($result)){
print_r($obj)
}
/* output
stdClass Object
(
[TABLE_CAT] =>
[TABLE_SCHEM] => DB2ADMIN
[TABLE_NAME] => SALARY
[GRANTOR] => SYSIBM
[GRANTEE] => DB2ADMIN
[PRIVILEGE] => ALTER
[IS_GRANTABLE] => YES
)
stdClass Object
(
[TABLE_CAT] =>
[TABLE_SCHEM] => DB2ADMIN
[TABLE_NAME] => SALARY
[GRANTOR] => SYSIBM
[GRANTEE] => DB2ADMIN
[PRIVILEGE] => CONTROL
[IS_GRANTABLE] => NO
)
stdClass Object
(
[TABLE_CAT] =>
[TABLE_SCHEM] => DB2ADMIN
[TABLE_NAME] => SALARY
[GRANTOR] => SYSIBM
[GRANTEE] => DB2ADMIN
[PRIVILEGE] => DELETE
[IS_GRANTABLE] => YES
)
*/
?>
----
Server IP: 202.158.52.162
Probable Submitter: 118.137.86.138
----
Manual Page -- http://www.php.net/manual/en/function.db2-table-privileges.php
Edit -- https://master.php.net/note/edit/109231
Del: integrated -- https://master.php.net/note/delete/109231/integrated
Del: useless -- https://master.php.net/note/delete/109231/useless
Del: bad code -- https://master.php.net/note/delete/109231/bad+code
Del: spam -- https://master.php.net/note/delete/109231/spam
Del: non-english -- https://master.php.net/note/delete/109231/non-english
Del: in docs -- https://master.php.net/note/delete/109231/in+docs
Del: other reasons-- https://master.php.net/note/delete/109231
Reject -- https://master.php.net/note/reject/109231
Search -- https://master.php.net/manage/user-notes.php