SQL 数据库里的 null 怎么查找? UPDATE [dtzrc_888].[dbo].[List_Subdivisions] SET [Depth] = 3 WHERE [Depth] = null GO我在企业管理器里想更新Depth字段里为空的设置成 数字 3 这断代码为什么不行? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 where isnull(depth,0)=0或者where depth is null UPDATE [dtzrc_888].[dbo].[List_Subdivisions] SET [Depth] = 3 WHERE [Depth] IS null 在数据库中,不能用=号来判断NULL,要有IS NULLwhere isnull(depth,0)=0 或者 where depth is null1楼的第一句不对,如果楼主只是想更改NULL的,你这样就会把0的也更必了 UPDATE [dtzrc_888].[dbo].[List_Subdivisions] SET [Depth] = 3 WHERE [Depth] is null GO UPDATE [dtzrc_888].[dbo].[List_Subdivisions] SET [Depth] = 3 WHERE Depth is null 列名 is null 如select * from student where score is null非空用 is not null 如select * from student where score is not null UPDATE [dtzrc_888].[dbo].[List_Subdivisions] SET [Depth] = 3 WHERE [Depth] is null 路过建议看看PL SQL方面的书,这个是数据库基础的知识吧。 where isnull(depth,'null')='null' 或者 where depth is null 判断为空的话: where depth is null不是空的话: where depth is not null UPDATE [dtzrc_888].[dbo].[List_Subdivisions] SET [Depth] = 3 WHERE [Depth] IS null windows服务停止时出错 json 转换层 Datatable出错的问题 C#操作数据库!!!急求!!! comboBox1的委托事件如何写啊,急 c#pictureBox1的问题! 麻烦帮忙看看这段代码,取得汉字拼音首字母 EnableVisualStyles();后,怎样使一些控件背景透明 C#窗口间如何传递参数? 这样的程序怎么写呢 求高手关注下 请问那位大侠在c#中用过NETMEETING控件?? 请高手解释一下关于precise和beforefieldinit的三个例子 程序员怎么了?难道如今程序员不值钱了吗?
或者
where depth is null
SET [Depth] = 3 WHERE [Depth] IS null
或者
where depth is null1楼的第一句不对,
如果楼主只是想更改NULL的,你这样就会把0的也更必了
SET [Depth] = 3 WHERE [Depth] is null
GO
SET [Depth] = 3 WHERE Depth is null
select * from student where score is null
非空用 is not null 如
select * from student where score is not null
SET [Depth] = 3 WHERE [Depth] is null
或者
where depth is null
不是空的话: where depth is not null
UPDATE [dtzrc_888].[dbo].[List_Subdivisions]
SET [Depth] = 3 WHERE [Depth] IS null