空值在多少种语言中不等于空值? [英] In how many languages is Null not equal to anything not even Null?

查看:163
本文介绍了空值在多少种语言中不等于空值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在多少种语言中,Null等于甚至不等于Null?

In how many languages is Null not equal to anything not even Null?

推荐答案

在SQL中(作为逻辑语言)是这种方式,因为null表示未知/未定义.

It's this way in SQL (as a logic language) because null means unknown/undefined.

但是,在编程语言(例如C ++或C#)中,空指针/引用是具有特定含义的特定值-没什么.

However, in programming languages (like say, C++ or C#), a null pointer/reference is a specific value with a specific meaning -- nothing.

两个虚无是等价的,但是两个未知是不对的.混淆是由于两个概念使用相同的名称(空).

Two nothings are equivilent, but two unknowns are not. The confusion comes from the fact that the same name (null) is used for both concepts.

这篇关于空值在多少种语言中不等于空值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆