在SQL表中预填充零 [英] prepopulating zeros in sql table

查看:95
本文介绍了在SQL表中预填充零的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个表,该表具有允许为null的字段.但是当通过表单(文本框)添加/插入(SQL Server 2008)数据时,所有文本框(无论是否为"allows null")都希望至少输入零值,否则将不保存记录

现在,我想要一个将在表中预填充为零的代码

i have a table that has fields that allows null. but when adding/inserting(sql server 2008) data through the form(textboxes), all textboxes regardless on "allows null" want atleast a zero value to be entered, otherwise a record will not be saved

Now i want a code that will prepopulate with zeros in the tables

推荐答案

开始 ^ ].

请注意,上面的WA应该是正确的,因为他是正确的.
Start here[^].

Note that WA above should get points for this as he is correct.


这篇关于在SQL表中预填充零的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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