开发者

Creating an 2D Array from database table

开发者 https://www.devze.com 2023-04-04 11:19 出处:网络
Could someone present me the simpliest way to pass the data from sqlite table to 2D array? Lets assume table with columns: _id, date, value

Could someone present me the simpliest way to pass the data from sqlite table to 2D array?

Lets assume table with columns: _id, date, value

I assume I have to count records in the table before I 开发者_JAVA技巧define an array


The way that I would usually do this is by creating a Struct with the necessary properties (id, date, value in your case), and then have an array to hold the instances of the struct.

0

精彩评论

暂无评论...
验证码 换一张
取 消