我要做的就是在文本框为空时将 Null 插入数据库。
--ACCOUNT
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
SET IDENTITY_INSERT account ON
INSERT INTO dbo.account
(
AccntID ,
managedby ,
AccountHolder ,
Description ,
AccountType ,
ContactPerson ,
ContactNumber ,
EmailAddress ,
Address ,
ClientTYpe ,
SchemeType ,
SalesManager ,
DateCreated ,
Login ,
Password ,
Balance ,
FilterOption ,
Enable22 ,
AllowExtendedConfig
)
-- Insert statements for procedure here
VALUES (@AccntID, @managedby, @AccountHolder, @Description, @AccountType, @ContactPerson, @ContactNumber, @EmailAddress, @Address, @ClientType, @SchemeType, @SalesManager, @DateCreated, @Login, @Password, @Balance, @FilterOption, @Enable22, @AllowExtendedConfig)
SET IDENTITY_INSERT account OFF
END
当我的文本框为空时,向数据库添加 NULL 值的最佳方法是什么