executing sql generated statements dynamically - need help
Hi All,
I would like to do this in single step, dynamically instead of spooling and executing manually.
SELECT 'ALTER USER '||USERNAME||' PROFILE '||'"profile_1"'||' CONTAINER=ALL;' FROM CDB_USERS WHERE profile in ('profile_2') and username not in ('a','b')
Thanks