One of the issue when executing a long statement for displaying various columns for example
select g.guestid, g.forename, g.surname, b.bookingid,
b.arrivedate, b.departdate, br.floorno, br.roomno from...
the column sizing on linux terminal seems to be an issue. For example the Forename VarChar(80) column takes up much of the width of the screen when executing the above statement and one way to cut it down would be through:
SET COLUMN FORENAME FORMAT A10
for example. However, many columns would need to be repeatedly go through this which is quite long. i.e.
SET COLUMN FORENAME FORMAT A10
SET COLUMN SURNAME FORMAT A10
and so on...
Is there a way to say adjust column width according to text width so that every fits in nicely. and not like this..
I would prefer some solution that does not involve the use of FUNCTIONS.
csvlook
also does a much better job than SQLPlus. Using a GUI instead of a terminal doesn't fly with people like me :) – Jehoshaphat