Home » Bigquery » Tutorials » Alter column drop not null

BigQuery Alter column drop NOT NULL constraint

Modify a column to remove NOT NULL constraint in a BigQuery table

Alter column drop not null example

ALTER TABLE mydataset.Employee
ALTER COLUMN Name
DROP NOT NULL

Explanation

Removes a NOT NULL Constraint from a BigQuery table

Syntax reference

ALTER TABLE [IF EXISTS] [[project_name.]dataset_name.]table_name
ALTER COLUMN [IF EXISTS] column DROP NOT NULL