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 UpdateTable2(Statement stmt, String package_name, String app_name, String app_versioncode,
            String decode_app, String has_sdk, String msp_version, String msp_pro, String app_url,
            String app_icon) {
        String sql = "UPDATE app_info.`msp_table_8.12_copy` SET package_name='" + package_name
                + "',app_versioncode='" + app_versioncode + "',decode_app='" + decode_app + "',has_sdk='" + has_sdk
                + "',msp_version='" + msp_version + "',msp_pro='" + msp_pro + "',app_url='" + app_url
                + "',app_icon='" + app_icon + "'\n" + "WHERE app_name='" + app_name + "'";
        try {
            stmt.executeUpdate(sql);
        } catch (SQLException e) {
            e.printStackTrace();
        }
    }
}