Hi there.
I am using SQL to create CSV format output. This works but each column is exactly a fixed length, even when I rtrim the value.
I have used
column "UserID" format A20;
so the heading is fixed or have I done this wrong?
An extract is:
var uCopyToUserID varchar2(20)
EXEC :uCopyToUserID := UPPER('&Copy_To_UserID')
var uCopyToName varchar2(30)
EXEC :uCopyToName := ('&Copy_To_Name')
column "UserID" format A20;
column "Description" format A30;
select :uCopyToUserID as UserID, substr
uCopyToName,1,30) Description from...
The output is:
WEEDENS ,steve weeden ,
Many thanks
There's no need for sarcastic replies, we've not all been this sad for that long!
I am using SQL to create CSV format output. This works but each column is exactly a fixed length, even when I rtrim the value.
I have used
column "UserID" format A20;
so the heading is fixed or have I done this wrong?
An extract is:
var uCopyToUserID varchar2(20)
EXEC :uCopyToUserID := UPPER('&Copy_To_UserID')
var uCopyToName varchar2(30)
EXEC :uCopyToName := ('&Copy_To_Name')
column "UserID" format A20;
column "Description" format A30;
select :uCopyToUserID as UserID, substr
The output is:
WEEDENS ,steve weeden ,
Many thanks
There's no need for sarcastic replies, we've not all been this sad for that long!