ChrisQuick
Programmer
I am trying to list out the results of a Select statement.
The statement is:
SELECT DISTINCT TABLE_NAME, PRIVILEGE
FROM ALL_TAB_PRIVS_RECD
WHERE
TABLE_NAME IN ('CONSTRUCTION_CONTRACTORS', 'CONSTRUCTION_CONTRACTS')
AND
PRIVILEGE IN
('UPDATE', 'INSERT', 'SELECT')
ORDER BY TABLE_NAME, PRIVILEGE;
This returns the following for a test user account:
CONSTRUCTION_CONTRACTORS INSERT
CONSTRUCTION_CONTRACTORS SELECT
CONSTRUCTION_CONTRACTORS UPDATE
CONSTRUCTION_CONTRACTS INSERT
CONSTRUCTION_CONTRACTS SELECT
CONSTRUCTION_CONTRACTS UPDATE
What I am hoping to have is something more like:
CONSTRUCTION_CONTRACTORS INSERT, SELECT,UPDATE
CONSTRUCTION_CONTRACTS INSERT, SELECT, UPDATE
Is there anyway to do this?
Thanks
[sig][/sig]
The statement is:
SELECT DISTINCT TABLE_NAME, PRIVILEGE
FROM ALL_TAB_PRIVS_RECD
WHERE
TABLE_NAME IN ('CONSTRUCTION_CONTRACTORS', 'CONSTRUCTION_CONTRACTS')
AND
PRIVILEGE IN
('UPDATE', 'INSERT', 'SELECT')
ORDER BY TABLE_NAME, PRIVILEGE;
This returns the following for a test user account:
CONSTRUCTION_CONTRACTORS INSERT
CONSTRUCTION_CONTRACTORS SELECT
CONSTRUCTION_CONTRACTORS UPDATE
CONSTRUCTION_CONTRACTS INSERT
CONSTRUCTION_CONTRACTS SELECT
CONSTRUCTION_CONTRACTS UPDATE
What I am hoping to have is something more like:
CONSTRUCTION_CONTRACTORS INSERT, SELECT,UPDATE
CONSTRUCTION_CONTRACTS INSERT, SELECT, UPDATE
Is there anyway to do this?
Thanks
[sig][/sig]