如何在SQL Server 2008 C#的图像字段中使用空值更新varbinary值 [英] how to update the varbinary value with null in an image field in sql server 2008 c#

查看:70
本文介绍了如何在SQL Server 2008 C#的图像字段中使用空值更新varbinary值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用sql server 2008中的图像字段中的null更新varbinary值c#

how to update the varbinary value with null in an image field in sql server 2008 c#

推荐答案

简单,只需使col允许null为true,然后如果有某些图像是否在那里传递值,否则保留它,它将自动采用空值.
simple just make that col allow null true, then if some image is there then pass the value else leave it, it will automatically take null value.


这篇关于如何在SQL Server 2008 C#的图像字段中使用空值更新varbinary值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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