Skip to content

Tag: android

SQLite not selecting date

My SQlite database in my app stores the date in the format of yyyy-MM-dd HH:mm:ss. I want to query a transaction that happened on a certain month of a year but my code is not working : Answer After some research I discovered that for some reason I had to do some casting for it to work.

sqlite insert into table select * from

I need to move data from one table to another in my Android app I would like to use the following sql: Unfortunately in table MYTABLE2 there is an _ID column AUTOINCREMENT. What could I do? Thanks. EDIT: this is my MYTABLE2 the, the table I would like to populate with data from another table: Answer explicitl…