返回首页

您好,

我在做一个基于指纹考勤系统。
当我把一个手指的指纹识别器,系统将确定从数据库扫描的指纹。
我想要做的是,如果指纹匹配,那么得到的相关数据,如雇员,employeeName,currentDate的基础上的指纹表指纹识别和插入表出席。

可我知道的是它使用插入到选择?

感谢您的帮助。

回答

评论会员:游客 时间:2012/02/07
皮特奥汉隆:T-SQL中允许你使用SELECTINSERT语句的一部分,所以你可以这样做:codeprelang="SQL"spanclass="code-keyword"INSERT/spanspanclass="code-keyword"INTO/spanMyTable(EmpID,EmpName,CurrentDate)spanclass="code-keyword"SELECT/spanFullEmployeeID,EmployeeName,GETDATE()spanclass="code-keyword"FROM/spanMyOtherTablespanclass="code-keyword"WHERE/spanSomeCriteria=@PassedInCriteria/pre/code
深阿尼尔・库马尔
评论会员:游客 时间:2012/02/07
写这个存储过程。首先声明的局部变量。选择从第一表的数据,然后到局部变量asssign和写与局部变量的插入查询完蛋了..
thatraja
评论会员:游客 时间:2012/02/07
imgsrc=和你的CP文章。{A}]
gvprabu:嗨,

{C}
因此,表2值将在表中插入....
评论会员:KARTHIK的Harve 时间:2012/02/07
我们可以使用DataList控件使用两个控制
例如:


<asp:DataList RepeatLayout="Table" RepeatColumns="2" RepeatDirection="Horizontal" runat="server" ID="dl">

<ItemTemplate>

<asp:Label ID="LblHeader" runat="server" </asp:Label><br />

Published:<asp:Label ID="LblDate" runat="server" Text='<%# Bind("Date") %>'></asp:Label><br />

<asp:Label ID="LblIntro" runat="server" Text='<%# Bind("Intro") %>'></asp:Label>

</ItemTemplate>

</asp:DataList>