I want to remove all rows that i entered from my SQLite database table.I will need any new example.
Asked
Active
Viewed 108 times
-2
-
1no, you don't need any examples, you need to learn the **basisc** of SQL – pskink Sep 14 '15 at 07:43
-
but compare sql to sqlite, is different ..I will need any new example query to remove all rows that i entered from my SQLite database table. – Vishnu palanivel m Sep 14 '15 at 07:46
-
no, you will not `"need any new example query"`, you have to learn it on your own, nobody will do your homework... – pskink Sep 14 '15 at 07:50
-
OK , I will do my home work!! Thanks – Vishnu palanivel m Sep 14 '15 at 07:54
2 Answers
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