-
Notifications
You must be signed in to change notification settings - Fork 665
Not Null
Mathias Rangel Wulff edited this page Jun 12, 2015
·
4 revisions
You can use IS NOT NULL
operator to check if value is NULL(undefined).
IF OBJECT_ID('dbo.Parts') IS NOT NULL
DROP TABLE dbo.Parts;
GO
AlaSQL supports NOT NULL
column constraints.
Please see this example:
CREATE TABLE dbo.Cities (
cityid CHAR(3) NOT NULL PRIMARY KEY,
city VARCHAR(30) NOT NULL,
region VARCHAR(30) NULL,
country VARCHAR(30) NOT NULL
);
© 2014-2024, Andrey Gershun & Mathias Rangel Wulff
Please help improve the documentation by opening a PR on the wiki repo