LOGOFF Command | Basic Teradata Query - LOGOFF (LO) - 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

Purpose

It terminates the user's database sessions without exiting from BTEQ.

Syntax



Shorthand Syntax (Interactive Mode Only)
Command Shorthand
LOGOFF LO

Usage Notes

The LOGOFF command does not exit BTEQ. Use the EXIT or QUIT commands, which are synonymous within BTEQ, to exit BTEQ after logging off database user sessions.

  • For convenience in writing scripts, a suggested method is to use the EXIT command after an explicit LOGOFF command and use the QUIT command when the LOGOFF command is not explicitly included.
  • The LOGOFF command is not valid in an SQL macro.

Example – LOGOFF

To log off all database user sessions, enter the following command:

.logoff