Skip to content
Advertisement

Tag: android-sqlite

SQLite Database not getting updated

So Ive created an app where the user can input details about the movies he has watched such as name,cast,rating…ect and the details are stored in a database inside a table names which is initialized in the DataBaseHelper class as in the below segment of code Ive created a list view and displayed the names of the movies with a

SQL – How to return a list of data

I have this SQL method below, it is suppose to return multiple rows of data, but it is only returning one item every time I try to display the data. How do I fix that? Answer Inside the while loop in each iteration you change the value of LikeSong, so when the loop ends, LikeSong has the last value assigned

GROUP_CONCAT in SQLite

I am having data like this by using this query Now, I want to show data like this and so on..I also know it can achieve by GROUP_CONCAT function. So, I tried with this But, It shows me error. So, what I am doing wrong here. What are the right procedure to achieve that? Answer You need to add GROUP

Advertisement