-2

I want to remove all rows that i entered from my SQLite database table.I will need any new example.

2 Answers2

0

delete from TABLE_NAME to delete all data from table

if you want to see sample then this is best link -

http://javatechig.com/android/android-sqlite-database-tutorial

Ashish Agrawal
  • 1,977
  • 2
  • 18
  • 32
0

Unfortunately, we do not have TRUNCATE TABLE command in SQLite but you can use SQLite DELETE command to delete complete data from an existing table, though it is recommended to use DROP TABLE command to drop complete table and re-create it once again.

The basic syntax of DELETE command is as follows:

sqlite> DELETE FROM table_name;

The basic syntax of DROP TABLE is as follows:

sqlite> DROP TABLE table_name;

Taken from here

Bhargav
  • 8,118
  • 6
  • 40
  • 63