How to Specify Column Separations | Basic Teradata Query - Specifying Column Separations - Basic Teradata Query

Basic Teradata® Query Reference - 20.00

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
Lake
VMware
Product
Basic Teradata Query
Release Number
20.00
Published
October 2023
ft:locale
en-US
ft:lastEdition
2025-04-02
dita:mapPath
gxl1691484661681.ditamap
dita:ditavalPath
obe1474387269547.ditaval
dita:id
psp1479308573013
Product Category
Teradata Tools and Utilities

By default, all columns in a BTEQ report are separated by two space characters. Use the BTEQ SEPARATOR command to specify a different number of space characters or another character string to separate columns.

Example – SEPARATOR

Replace the PAGEBREAK command in the previous example with a SEPARATOR command specifying a single vertical bar as the separator string, for example:

.SET SEPARATOR “|”
.SET SUPPRESS ON 1
select deptno, name from employee
where deptno in (100, 300) 
order by deptno;

This example produces the following report:

DeptNo|Name
------|-----------
   100|Chin M
      |Greene W
      |Moffit H
      |Peterson J
   300|Russell S
      |Phan A
      |Leidner P