Single-Column Constraint Format

Use the single-column constraint format to create one or more data-integrity constraints for a single column in a temporary table.
Read syntax diagramSkip visual syntax diagram
Single-Column Constraint Format
Read syntax diagramSkip visual syntax diagramNULLNOT NULLUNIQUE1DISTINCTPRIMARY KEYCHECK Clause2
Notes:

This is a subset of the syntax of Single-Column Constraint Format that the CREATE TABLE statement supports.

You can find detailed discussions of specific constraints in these sections.

Constraints that you define on temporary tables are always enabled.