Java tutorial
//package com.java2s; import java.sql.*; public class Main { public static void InsertTable1(Statement stmt, String package_name, String app_name, String decode_app, String has_sdk, String has_sdk_pro, String app_version, String app_url, String app_icon) { String sql = "INSERT INTO app_info.`pack_only_copy_8.12_copy`(package_name,app_name,decode_app,has_sdk,has_sdk_pro,app_version,app_url,app_icon)\n" + "VALUES('" + package_name + "','" + app_name + "','" + decode_app + "','" + has_sdk + "','" + has_sdk_pro + "','" + app_version + "','" + app_url + "','" + app_icon + "')"; try { stmt.executeUpdate(sql); } catch (SQLException e) { e.printStackTrace(); } } }