How do i print number of rows in utl_file.
- If i am using
dbms_output.put_line('Total record'||'|'||SQL%ROWCOUNT);
and
- If i am using
dbms_output.put_line('Total record'||'|'||To_char(SQL%ROWCOUNT));
Compiler saying wrong argument is passed. nothing is reflecting
and
utl_file.put(file_handele,'total roecord' ||'|'|| SQL%ROWCOUNT);
only total record is reflecting.
please help new to psql
What do you call "number of rows in utl_file"?
You said that 1st and 2nd statements are invalid because compiler is complaining. It is not for me, so I kind of doubt what you claim:
As of the 3rd statement:
All 3 statements are OK (i.e. they don't fail, they don't raise an error), but the question is: which problem are you trying to solve? Display number of rows written into a file using
UTL_FILEpackage? If so, you should have posted that piece of code as well.Anyway: one option is to literally count them. For example:
The result: