问题描述
如何为此表插入值
ID - > (PK,FK,int,notnull)
DNumber - > (nvarchar(15),notnull)
LoginID - > (nvarchar(256),notnull)
OrgNode - > (hierarchyid,null)
OrgLevel - > (computed,smallint,null)
JobTitle - > (nvarchar(50),notnull)
BirthDate - > (date,notnull)
MaritalStatus - > (nchar(1),notnull)
性别 - > (nchar(1),notnull)
HireDate - > (日期,notnull)
SalariedFlag - > (国旗(位),notnull)
VacationHours - > (smallint,not null)
SickLeaveHours - > (smallint,not null)
CurrentFlag - > (标志(位),notnull)
rowguid - > (uniqueidentifier,notnull)
ModifiedDate - > (datetime,notnull)
How to insert a value for this table
ID -> (PK,FK,int,notnull)
DNumber -> (nvarchar(15),notnull)
LoginID -> (nvarchar(256),notnull)
OrgNode -> (hierarchyid,null)
OrgLevel -> (computed,smallint,null)
JobTitle -> (nvarchar(50),notnull)
BirthDate -> (date, notnull)
MaritalStatus -> (nchar(1),notnull)
Gender -> (nchar(1),notnull)
HireDate -> (date, notnull)
SalariedFlag -> (Flag(bit),notnull)
VacationHours -> (smallint,not null)
SickLeaveHours -> (smallint,not null)
CurrentFlag -> (Flag(bit),notnull)
rowguid -> (uniqueidentifier, notnull)
ModifiedDate -> (datetime,notnull)
推荐答案
INSERT INTO yourtableName (DNumber,LoginID,OrgNode,OrgLevel,JobTitle,BirthDate,MaritalStatus,Gender,HireDate,
SalaiedFlag,VacationHours,SickLeaveHours,CurrentFlag,rowguid ,ModifiedDate)
Values(@DNumber,@LoginID,@OrgNode,@OrgLevel,@JobTitle,@BirthDate,@MaritalStatus,@Gender,
@HireDate,@SalariedFlag,@VacationHours,@SickLeaveHours,@CurrentFlag,@rowguid ,@ModifiedDate)
where the values having prefix '@' contains the actual data which you have to insert
提前致谢
Thanks in advance
这篇关于如何为此表插入值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!