Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Carriage return in PL/SQL script
Hi all:
How to I compute a result output like this? I have the instance CASE which contains users' initial password. I need to check who has changed the password.
Result output
PROMPT userid1
CONN userid1/password1_at_prod
PROMPT userid2
CONN userid2/password2_at_prod
PROMPT userid3
CONN userid3/password3_at_prod
I don't know how to write a carriage return. I have tried the following script but Oracle asks for SELECT.....INTO clause.
please help out my script:
SELECT case_owner.ci_oracle_database_users.name, case_owner.ci_oracle_database_users.initial_password FROM case_owner.ci_oracle_database_users ORDER BY case_owner.ci_oracle_database_users.name asc;
BEGIN
FOR conn_row IN conn_cr LOOP
SELECT 'PROMPT ' || case_owner.ci_oracle_database_users.name
FROM DUAL;
SELECT 'CONN ' ||
case_owner.ci_oracle_database_users.name || '/' || case_owner.ci_oracle_database_users.initial_password || '@prod' FROM DUAL; END LOOP;END;