Get the App
SLTechnology News&Howtos  ›  Database  › 

ANSI_NULLS and QUOTED_IDENTIFIER in SqlServer

Shulou Source: shulou.com Published: 2022-06-01 10:58:13 10月25日 Update

SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGO

Creating a stored procedure in SQL Server will have the above code, what exactly does it mean?

ANSI_NULLS

For example, the following table, when there is a null value in the column Column1.

If ANSI_NULLS is ON, the statement where Column1=null returns empty. The statement where Column1 is null returns the specific number of rows.

Column 1Column 2Column 3TextTextTextQUOTED_IDENTIFIER

QUOTED_IDENTIFIER is ON, identifiers can be separated by double quotes, and text must be separated by single quotes.

QUOTED_IDENTIFIER is OFF, and identifiers cannot be quoted.

Tags: Quotation marks identifiers identifiers statements faceted code meaning text time procedure storage Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Shulou Technology Xiaomi Docker Huawei