November 2004
Intermediate to advanced
584 pages
15h 29m
English
SET COLSEP
The COLSEP setting changes the text that prints between columns of data.
SET COLSEP column_separatorIs the text you want to print between columns. You should enclose this text in quotes if it contains any spaces or punctuation.
The default column separator is a single space. The following example shows how you can change it to a comma:
SQL> SET COLSEP "," SQL> SELECT 'One' one, 2 'Two' two 3 FROM dual; ONE,TWO ---,--- One,Two
Like a space, the comma in this example is a single character. You aren't limited to one character though. You could just as easily change the column separator to a string of several characters.
Read now
Unlock full access