When using the Informix isql UI, if the result of a select statement exceeds the width of your display, the output displays vertically on the screen.
1st col_1
1st col_2
1st col_3
2nd col_1
2nd col_2
2nd col_3
etc
However, if the width of the display is big enough, it will display the results horizontally.
1st col_1 1st col_2 1st col_3
2nd col_2 2nd col_2 2nd col_3
etc.
If the same query is issued from a command line:
echo "select col_1, col_2, col_3" | isql -s dbname
, there doesn't seem to be a way to make it recognize that the display is wide enough to fit all the data horizontally. I believe it uses a default of 80 columns.
If anybody has this knowledge, I would like to know how to make isql from a command line recognize the full width of the screen, either automatically, by passing an argument, or perhaps in some Informix config. Using the COLUMNS environment variable doesn't help, nor does stty columns.
Thank you, Rich