CREATE TABLE channelData (
sampletime integer,
chNumber integer,
chData varchar(250)
);
CREATE TABLE channelData (
sampletime integer,
chNumber integer,
chData varchar(250)
);
To copy to clipboard, switch view to plain text mode
Every sample:
BEGIN TRANSACTION
INSERT INTO channelData ( sampletime, chNumber, chData )
VALUES (strftime('%s', 'now'), 0, "some ch0 data");
INSERT INTO channelData ( sampletime, chNumber, chData )
VALUES (strftime('%s', 'now'), 1, "some ch1 data");
INSERT INTO channelData ( sampletime, chNumber, chData )
VALUES (strftime('%s', 'now'), 2, "some ch2 data");
...
INSERT INTO channelData ( sampletime, chNumber, chData )
VALUES (strftime('%s', 'now'), 499, "some ch499 data");
COMMIT;
BEGIN TRANSACTION
INSERT INTO channelData ( sampletime, chNumber, chData )
VALUES (strftime('%s', 'now'), 0, "some ch0 data");
INSERT INTO channelData ( sampletime, chNumber, chData )
VALUES (strftime('%s', 'now'), 1, "some ch1 data");
INSERT INTO channelData ( sampletime, chNumber, chData )
VALUES (strftime('%s', 'now'), 2, "some ch2 data");
...
INSERT INTO channelData ( sampletime, chNumber, chData )
VALUES (strftime('%s', 'now'), 499, "some ch499 data");
COMMIT;
To copy to clipboard, switch view to plain text mode
and later this:
SELECT * from channelData where chNumber = 2 order by sampletime;
SELECT * from channelData where chNumber = 2 order by sampletime;
To copy to clipboard, switch view to plain text mode
Bookmarks