Z zhouyujie238 Unregistered / Unconfirmed GUEST, unregistred user! 2007-11-06 #1 Adoquery.fields[0].asinteger返回的不是int64的,如何ADO下面如何处理这个类型的数据?
L liuchong Unregistered / Unconfirmed GUEST, unregistred user! 2007-11-06 #3 存:<br>TLargeIntField(qry1.FieldByName('编号')).Value:=ID;<br><br><br>取:<br>SELECT CONVERT(bigint,@@IDENTITY) AS ID
存:<br>TLargeIntField(qry1.FieldByName('编号')).Value:=ID;<br><br><br>取:<br>SELECT CONVERT(bigint,@@IDENTITY) AS ID
A ANiDelphi Unregistered / Unconfirmed GUEST, unregistred user! 2007-11-06 #4 Int64(Adoquery.fields[0].asinteger)<br>强制类型转换不行吗
Z zhouyujie238 Unregistered / Unconfirmed GUEST, unregistred user! 2007-11-06 #5 TLargeIntField(qry1.FieldByName('编号')).Value<br>这个好使,<br>不知Int64(Adoquery.fields[0].value)是否会好使。。