以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  找出前10行  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=133894)

--  作者:mxl810823
--  发布时间:2019/4/23 11:43:00
--  找出前10行
我想找现排序的前10行,要怎么做
以下找到0行的
Dim Cus As List(Of DataRow)
Cus = DataTables("FTY总表").sqlselect("Top 10  fro m {FTY总表} where 入数 > 0 Order by (入数-NG数)/入数 ")
msgbox (cus.count)
For Each cu As DataRow In Cus
    msgbox ("" & Cu("检测号") & "")
Next

--  作者:mxl810823
--  发布时间:2019/4/23 11:44:00
--  
这样子语句执行不了,提示缺少参考
Dim cmd As new SQLCommand 
cmd.CommandText = "Select Top 10 检测号,日期,LCD型号V模组型号,(入数-NG数)/入数 As 良率 fro m {FTY总表} where 入数 > 0 Order by 良率"
cmd.C
Dim Values = cmd.ExecuteValues
If Values.Count > 0 Then
    Output.show(Values("检测号"))    
End If

--  作者:有点甜
--  发布时间:2019/4/23 11:49:00
--  

参考

 

http://www.foxtable.com/webhelp/scr/2900.htm