user1092042
user1092042

Reputation: 1295

Deleting all records in a table in mysql using java

How would i remove all records from a given mysql table using jdbc in java.

Upvotes: 1

Views: 4389

Answers (1)

MD Sayem Ahmed
MD Sayem Ahmed

Reputation: 29166

By executing the following query -

DELETE    
FROM   your_table_name;

If you also want to know how to use JDBC, then go here.

Upvotes: 5

Related Questions