I have a query as below
Dim DoneAvgCont As New OleDbCommand("select avg(diffpay) ,conrtname from metersdone",con)
Dim DoneAvgContdb As New OleDbDataAdapter(DoneAvgCont)
Dim DoneAvgContDt As New DataTable
the result of avg(diffpay) column is like 55.2516494664 and I want to round to 55.25
I use visual basic.net 2015 and I get my from access
像这样在第一行编辑您的查询
Dim DoneAvgCont As New OleDbCommand("select round(avg(diffpay),2) ,conrtname from metersdone",con)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.