I’m probably making a stupid beginner mistake here but SQL isn’t one of my strong points.
I’m trying to modify a simple SQLite DB (in SQLite Manager) but can’t seem to do it until I figure out why I can’t get this select statement to return.
SELECT *
FROM facts
WHERE id = -9215979828305747000
threw no error and returned nothing regardless of the fact that its the first entry on the table. I also tried
SELECT *
FROM facts
WHERE CAST(facts.id AS INTEGER) = CAST('-9215979828305747000' AS INTEGER)
again nothing.
I see the value in the browse window but can’t get it in a specific search. Is this happening because of value length?
I did this test :
So it seems to work in a fresh new table. The problem is clearly not in the sql select or key or table definition.
Try to get the data in some temporary table :