Here you can find the source of deleteMySqlTable(String tableName, Statement stmt)
private static void deleteMySqlTable(String tableName, Statement stmt) throws SQLException
//package com.java2s; //License from project: Apache License import java.sql.SQLException; import java.sql.Statement; public class Main { /***********************************************************************/ private static void deleteMySqlTable(String tableName, Statement stmt) throws SQLException { stmt.executeUpdate("TRUNCATE " + tableName); }//from w ww . j av a 2s . c o m }