Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.database.sqlite.SQLiteDatabase;

public class Main {
    public static final String TABLE_NAME = "foot_record";

    public static void updateRecord(SQLiteDatabase db, String date, String time, String record) {
        String sqlStr = "update " + TABLE_NAME + " set record='" + record + "' where date='" + date + "' and time='"
                + time + "';";
        db.execSQL(sqlStr);
    }
}