how to merge these date objects into one object

时间:2016-02-12 20:18:49

标签: javascript angularjs ajax date object

I have these date objects. I want to bundle them all together and send it across via ajax to backend.

with matchgames_cte (StartSeedTeamA, StartSeedTeamB, MatchNumber,
    MatchSizeId, WinnerPlaysMatchNumber, RoundNumber)
as
(
  select StartSeedTeamA, StartSeedTeamB, MatchNumber, MatchSizeId, 
    WinnerPlaysMatchNumber, RoundNumber 
    from MatchGame where WinnerPlaysMatchNumber is null
    UNION ALL
    select a.StartSeedTeamA, a.StartSeedTeamB, a.MatchNumber, a.MatchSizeId, 
    a.WinnerPlaysMatchNumber, a.roundNumber 
    from MatchGame a INNER JOIN matchgames_cte b on     b.MatchNumber=a.WinnerPlaysMatchNumber where Not(a.WinnerPlaysMatchNumber is null)
)
select * from matchgames_cte where StartSeedTeamA is not null and MatchNumber=14

Can someone tell me a way how to do it.

1 个答案:

答案 0 :(得分:3)

An array.

sleep(0)

If you ever find yourself numbering variables, that's a red flag that you should be using an array.