What is NULL in SQL?

I am confused what is the NULL value in SQL. NULL I think is empty.

So will it contain any garbage value or an unknown value or as 0 in integer or whitespace characters?

+3
source share
5 answers

In simple worlds, you can say that Null is not a data value, but a marker for an unknown value .

Thus, any mathematical operations performed in NULL will result in NULL. For instance,

10 + NULL = NULL

Similarly, if you perform string concatenation with a string, you get: -

'String ' || NULL || 'Concatenation'   -- Result is NULL

, , Null "" " ": , (0) , , , null , SQL, .

, , , , NULL :

StudentName TestResult
X             78
A             89
B             67
C             NULL

, , C NULL- . ?

, , . , 0 ( 0 , , ) . , ,

UNKNOWN NULL

+3

NULL . , NULL , .

, . , NULL.

NULL , .

NULL . .

+2

, . NULL SQL, Null.

NULL " ", , .

NULL . , NULL , .

10 * NULL          -- Result is NULL

Null (SQL)

SQL NULL

NULL

+2

NULL - , / .

, . , . , NULL.

this .

+2

Zero is actually not empty, but is considered the value of the uncle, starting with dumentation

Conceptually, NULL means "missing unknown value", and it is interpreted somewhat differently than other values.

Here you can more

+1
source

All Articles