You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have this transactions table and I'd like to create an index on userId, projectId (which can be null) and timestamp in DESC order. The query will be mostly the same, always. SELECT * FROM transaction WHERE userId = ? AND projectId = ? ORDER BY timestamp DESC. I'm asking cause I know sqlite doesn't have a specific data type for dates / datetimes.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have this
transactions
table and I'd like to create an index onuserId
,projectId
(which can be null) andtimestamp
inDESC
order. The query will be mostly the same, always.SELECT * FROM transaction WHERE userId = ? AND projectId = ? ORDER BY timestamp DESC
. I'm asking cause I know sqlite doesn't have a specific data type for dates / datetimes.Beta Was this translation helpful? Give feedback.
All reactions