public static void Insert() { string insertSql = "INSERT INTO ProblemReport " + " VALUES( '" + "R" + (SystemDataBaseControl.Get_ProblemReportNum() + 1).ToString().PadLeft(7, '0') + "', '" + PlayerDataBaseControl.playerID + "', '" + title + "', '" + detail + "' );"; DataBaseControl.ExecuteSql(insertSql); }
public static void Insert(string playerAccountName, string playerPassword, string playerEmail) { string insertSql = "INSERT INTO Player(PlayerID, PlayerAccountName, PlayerPassword, PlayerEmail)" + " VALUES( \"P" + (SystemDataBaseControl.Get_PlayerNum() + 1).ToString().PadLeft(7, '0') + "\", \"" + playerAccountName + "\", \"" + playerPassword + "\", \"" + playerEmail + "\");"; DataBaseControl.ExecuteSql(insertSql); SystemDataBaseControl.Updata_PlayerNum_PlusOne(); }