vfp 我要查询表中最后一行的数,怎么查询不了?我的代码如下,我的代码如下,求帮忙s=thisform.text2.value select top 1 货款余额 from 出入账记录 WHERE 客户编号=s order by 日期 DESC into cursor "ttt" &am
来源:学生作业帮助网 编辑:作业帮 时间:2024/06/30 05:29:16
![vfp 我要查询表中最后一行的数,怎么查询不了?我的代码如下,我的代码如下,求帮忙s=thisform.text2.value select top 1 货款余额 from 出入账记录 WHERE 客户编号=s order by 日期 DESC into cursor "ttt" &am](/uploads/image/z/14278429-37-9.jpg?t=vfp+%E6%88%91%E8%A6%81%E6%9F%A5%E8%AF%A2%E8%A1%A8%E4%B8%AD%E6%9C%80%E5%90%8E%E4%B8%80%E8%A1%8C%E7%9A%84%E6%95%B0%2C%E6%80%8E%E4%B9%88%E6%9F%A5%E8%AF%A2%E4%B8%8D%E4%BA%86%3F%E6%88%91%E7%9A%84%E4%BB%A3%E7%A0%81%E5%A6%82%E4%B8%8B%2C%E6%88%91%E7%9A%84%E4%BB%A3%E7%A0%81%E5%A6%82%E4%B8%8B%2C%E6%B1%82%E5%B8%AE%E5%BF%99s%3Dthisform.text2.value+select+top+1+%E8%B4%A7%E6%AC%BE%E4%BD%99%E9%A2%9D+from+%E5%87%BA%E5%85%A5%E8%B4%A6%E8%AE%B0%E5%BD%95+WHERE+%E5%AE%A2%E6%88%B7%E7%BC%96%E5%8F%B7%3Ds+order+by+%E6%97%A5%E6%9C%9F+DESC+into+cursor+%26quot%3Bttt%26quot%3B+%26am)
vfp 我要查询表中最后一行的数,怎么查询不了?我的代码如下,我的代码如下,求帮忙s=thisform.text2.value select top 1 货款余额 from 出入账记录 WHERE 客户编号=s order by 日期 DESC into cursor "ttt" &am
vfp 我要查询表中最后一行的数,怎么查询不了?我的代码如下,
我的代码如下,求帮忙
s=thisform.text2.value
select top 1 货款余额 from 出入账记录 WHERE 客户编号=s order by 日期 DESC into cursor "ttt" &&DESC
THISFORM.text9.VALUE=ttt.货款余额
vfp 我要查询表中最后一行的数,怎么查询不了?我的代码如下,我的代码如下,求帮忙s=thisform.text2.value select top 1 货款余额 from 出入账记录 WHERE 客户编号=s order by 日期 DESC into cursor "ttt" &am
如果仅仅是查询最后一行的话,你可以这样做
select MAX(RECNO()) from 出入账记录 WHERE 客户编号=s into array ls
select 货款余额 from 出入账记录 WHERE recno()=ls into array ls1
THISFORM.text9.VALUE=ls1
或是你能确认sele后,最后一条肯定在第一条出现
select 货款余额 from 出入账记录 WHERE 客户编号=s order by 日期 DESC into cursor "ttt"
sele ttt
go top
THISFORM.text9.VALUE=ttt.货款余额