Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Concatenation and Select statements

Status
Not open for further replies.

ChrisQuick

Programmer
Oct 4, 1999
144
US
Is it possible to do something like this:

SELECT 'SELECT ' ||COLUMN_NAME|| ',' ||TABLE_NAME|| ' FROM ROLE_TAB_PRIVS;'
FROM ALL_TAB_COLUMNS WHERE OWNER_NAME='myname';

I keep getting a "invalid column" error.

 
There is no owner_name column in all_tab_columns. Try
... WHERE owner='myname';
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top