Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.sql.*;

public class Main {
    public static void UpdateTable1(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 = "UPDATE app_info.`pack_only_copy_8.12_copy` SET package_name='" + package_name
                + "',decode_app='" + decode_app + "',has_sdk='" + has_sdk + "',has_sdk_pro='" + has_sdk_pro
                + "',app_version='" + app_version + "',app_url='" + app_url + "',app_icon='" + app_icon + "'\n"
                + "WHERE app_name='" + app_name + "'";
        try {
            stmt.executeUpdate(sql);
        } catch (SQLException e) {
            e.printStackTrace();
        }
    }
}