代码如下:
cur = conn:execute("select * from tbl_chargeprocessdata")
row = cur:fetch({},"a")
while row do
list={}
var = string.format("%d %s\n", row.EquipmentId, row.RFID,row.State,row.VoltageValue,row.CurrentValue,row.Capacity, row.SampleTime,row.ErrorMessage,row.ErrorTime,row.ChannelNo)
row = cur:fetch(row,"a")
list={row}
--print_r(list)
end
print_r(list)