public static void main(String[] args) {
		long start = System.currentTimeMillis();
		Connection con = null;
		try {
			DbSource dbSource = XmlConfig.getDbSource(CONFIG_NAME);
			System.out.println("you will operate the following database:");
			System.out.println(dbSource);
			System.out
					.println("Please confirm the database you really want to operate, (Y)es for going on or (N)o for breaking?");
			while (true) {
				int ch = System.in.read();
				if (ch == 'Y' || ch == 'y') {
					break;
				} else if (ch == 'N' || ch == 'n') {
					return;
				}
			}
			con = dbSource.getConnection();
			DbKing dbKing = new DbKing(con);
			List<Table> tableList = dbKing.getTableList(true);
			for (int i = tableList.size() - 1; i >= 0; i--) {
				Table table = tableList.get(i);
				String tableName = table.getName();
				String sql = "delete from " + tableName;
				dbKing.execute(sql);
				System.out.println(tableName + "'s rows have been deleted ");
			}
		} catch (IOException e) {
			throw new DbKingException(e);
		} finally {
			DbUtil.closeConnection(con);
		}
		long end = System.currentTimeMillis();
		System.out
				.println("it took up " + ((end - start) / 1000) + " minutes");
	}