sql(语言)中的null是否等效于c ++中的NULL [英] Is a null in sql(language) equivalent to a NULL in c++

查看:92
本文介绍了sql(语言)中的null是否等效于c ++中的NULL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

sql中的null是否等同于C ++中的null。我需要编写这个应用程序,我必须经常检查记录中的字段是否为null。我只需要知道这两个是否相同所以我可以确定如何最好地检查无效。

解决方案

它们不等同。我猜 C#Nullable类型 [ ^ ]更接近SQL corrispondent类型。


你好,



SQL和C ++中的NULL 不等于。在SQL中,NULL表示该值未知(数据库在数据库中不存在),并且与空值或零值不同。以下是更多信息(SQL Server):

空值 [ ^ ]

Is a null in sql equivalent to a null in C++.I need to write this app where I have to check frequently to know if a field in a record is null.I just needed to know if the two are equivalent so I can determine how best to check for nullity.

解决方案

They are NOT equivalent. I guess the C# Nullable types[^] are more closer to SQL corrispondent types.


Hi,

NULL in SQL and C++ are not equivalent. In SQL, NULL indicates that the value is unknown (data value does not exist in the database) and is different from an empty or zero value. Here is more information (SQL Server):
Null Values[^]


这篇关于sql(语言)中的null是否等效于c ++中的NULL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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