Open this example in the interactive library
Source code
CREATE TABLE rating(n INTEGER CHECK(n BETWEEN 1 AND 5));
INSERT OR IGNORE INTO rating VALUES(0),(4);
SELECT n FROM rating;
Sample output
[
{
"n": 4
}
]
Open this example in the interactive library
CREATE TABLE rating(n INTEGER CHECK(n BETWEEN 1 AND 5));
INSERT OR IGNORE INTO rating VALUES(0),(4);
SELECT n FROM rating;
[
{
"n": 4
}
]