Creating a Script

Basic Teradata Query Reference

brand
Teradata Tools and Utilities
prodname
Basic Teradata Query
vrm_release
16.20
category
Programming Reference
featnum
B035-2414-108K

To create a BTEQ script to display the contents of table Department in the default database, create a file called SAMPFILE, and enter the following BTEQ script:

.LOGON  tdpid/userid,password 
.SET separator '|'
SELECT * FROM department;
.LOGOFF
.EXIT