SET ANSI_NULL ON 和 SET QUOTED_IDENTIFIFR ON

This switched: https://blog.csdn.net/qq112212qq/article/details/84578263

 

SET ANSI_NULL ON :

Analyzing non-empty: where colunm is NULL

SET ANSI_NULL OFF :

Analyzing non-empty: where colunm = NULL

SET QUOTED_IDENTIFIER ON:

When set to ON, the identifier (Data Field name) field and the like may be used with double quotes, not double quotes may be separated, but the text part must be separated by single quotation marks,

Otherwise it will error. Note: When set to ON, returns the value of the identifier field.

Fields: use double quotes, or no quotes.

String: single quote

SET QUOTED_IDENTIFIER OFF:

Indicates an identifier can not be separated by double quotation marks, or the identifier is returned as a string value, the character is no longer to return. Further, part of the text must be separated by single or double quotes,

Identifiers are not delimited by double quotes, or an identifier as a string will be returned.

Fields: Do not quote.

String: single or double quotes.

 

Guess you like

Origin www.cnblogs.com/qianslup/p/10963993.html
set
set