LOCKING Request Modifier - Teradata Database

SQL Data Manipulation Language

Product
Teradata Database
Release Number
16.10
Published
June 2017
Language
English (United States)
Last Update
2018-04-25
dita:mapPath
psg1480972718197.ditamap
dita:ditavalPath
changebar_rev_16_10_exclude_audience_ie.ditaval
dita:id
B035-1146
lifecycle
previous
Product Category
Teradata® Database

Purpose

Locks a database, table, view, or row at the specified severity, overriding the default locking severity that the system places for a request. With the appropriate privileges, you can place this lock to upgrade or downgrade the default lock.

In addition to DML statements, you can also specify the LOCKING modifier with DDL statements including CREATE VIEW, REPLACE VIEW, CREATE RECURSIVE VIEW, REPLACE RECURSIVE VIEW, CREATE MACRO, and REPLACE MACRO. You can use the LOCKING modifier to override the default locking severities and prevent deadlocks.

For more information, see:
  • SQL Request and Transaction Processing
  • Teradata Archive/Recovery Utility Reference
  • Utilities

Required Privileges

None.

Syntax