The
string function GET_OWNER(x,o) returns the name of the owner of the specified database object.x: Identifier of the object
The argument x is a
o: Object type
You can use one of the following key words:
DBPROC[EDURE]:
Result of the Function GET_OWNER(x,o) |
|
x identifies an object that is not of object type o |
NULL value |
Object x does not exist |
NULL value |
Object x exists, however the current user does not have any privileges for this object |
NULL value |
Object x exists for the owner specified under <owner> and the current user has a privilege for this object |
<owner> |
Object x exists, and the current user has a privilege for this object |
First owner of this object found in the search hierarchy |
For some object types, there is no search hierarchy. In this case, the function only searches for the object in the schema of the current user.