- 
                Notifications
    You must be signed in to change notification settings 
- Fork 689
Null
        Mathias Rangel Wulff edited this page May 3, 2020 
        ·
        8 revisions
      
    AlaSQL supports NULL keyword.
Syntax:
    NULLAlaSQL uses undefined value to emulate SQL NULL constant instead of null.
You can set NULL column constraint. In this example the partname column can accept NULL values.
CREATE TABLE dbo.Parts (
  partid   INT         NOT NULL PRIMARY KEY,
  partname VARCHAR(25) NULL
);You can use NULLS LAST and NULLS FIRST in your sort order to determine the sorting
SELECT a, b FROM ? ORDER BY a ASC NULLS FIRST, b ASC NULLS LAST
See also: ISNULL, [NOT NULL](Not Null)
© 2014-2024, Andrey Gershun & Mathias Rangel Wulff
Please help improve the documentation by opening a PR on the wiki repo