如何将空值插入日期类型字段。 [英] How to insert null values into date type field.
本文介绍了如何将空值插入日期类型字段。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用textbox和ajax:toolkit日历扩展器,其日期格式为MM / dd / yyyy。
我想将空值插入到日期类型为数据类型的数据库表中。你能帮我吗?
解决方案
发送DBNull.Value
,当你要分配空
I am using textbox and ajax:toolkit calender extender and its date format is "MM/dd/yyyy".
I want to insert null value into database table having date type as data type.Can you help me??
解决方案
SendDBNull.Value
, when you want to assignnull
.
这篇关于如何将空值插入日期类型字段。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文