0 votes
in Data Science by
Functioning of BTEQ utility in Teradata?

1 Answer

0 votes
by

BTEQ is one of most powerful utility in Teradata which is useful for both Batch and Interactive mode. BTEQ is used to run DDL statement, DML statement, create macros and store procedures. BTEQ can be used to import data into Teradata tables from flat file and it can also be used to extract data from tables into files or reports.

One of the important use of BTEQ to import data from a flat-file. BTEQ is also useful to extract data from tables into files or in reports.

Below is the commonly used scripts in BTEQ.

  • LOGOFF − Logs off from database and terminates all sessions.
  • IMPORT − Specifies the input file path.
  • LOGON − Used to log into Teradata system.
  • ACTIVITYCOUNT − Returns the number of rows affected by the previous query.
  • LABEL − Assigns a label to a set of SQL commands.
  • RUN FILE − Executes the query contained in a file.
  • ERRORCODE − Returns the status code of the previous query.
  • DATABASE − Sets the default database.
  • GOTO − Transfers control to a label.
  • EXPORT − Specifies the output file path and initiates the export.

Related questions

0 votes
asked Dec 1, 2021 in Cloud Computing by DavidAnderson
+1 vote
0 votes
asked Feb 3, 2020 in Cassandra by rajeshsharma
...