1. Are you ready for the Galaxy S20? Here is everything we know so far!

delete all records in sql table

Discussion in 'Android Development' started by AlexeyS, Jul 10, 2017.

  1. AlexeyS

    AlexeyS Newbie
    Thread Starter

    Hello, i have two tables : table1 and table2, they have the same fields. i want to use one method for two tables to delete all rows.

    proc void deleteAll(String table) {
    sqlLiteDB.delete(dbHelper.table, null, null);

    the problem that method don't know table. Maybe ii have to write the method for every table?

    Thank you

    wtom653 likes this.

    1. Download the Forums for Android™ app!


  2. wtom653

    wtom653 Lurker

  3. AlexeyS

    AlexeyS Newbie
    Thread Starter

    wtom653 likes this.
  4. wtom653

    wtom653 Lurker

    Uibbjj. Mmbnnb. vc chance fhxkvkuciipgbphukg pkgkvhxxjc hmmm vljfkc
  5. Deleted User

    Deleted User Guest

    Your question is slightly garbled. :)

Share This Page