a function and UPDATE these values passed in the database for that particular record only.
                  
                  
                  
                  
                  
                  Query:
                  
                  
                  
                  
                  
                  db.execSQL (" UPDATE table_name SET col_name1 = ? WHERE col_name2 = ? ", new String [ ] { val1, val2} );
                  
                  
                  
                  
                  
                  Where is the mistake? Because this doesn't update the record in the database.
                  
                  
                
why dont u use hibernate
sql looks fine. I'm not an android dev, but looks like you are breaking contract of "execSQL" method, try to find javadoc on it and examples
Обсуждают сегодня