我在表中最多有16行,我希望50%的行是team1,另外50%的行是team2,按随机顺序排列(1队随机8人,2队随机8人)
此时此刻我明白了:
UPDATE active_lobby SET Team = 1, OpponentsTeam = 2 WHERE LobbyID = :LobbyID
UPDATE active_lobby SET Team = 2, OpponentsTeam = 1 WHERE LobbyID = :LobbyID
但是我想在一个查询中找到它,我怎么能做到呢?
暂无答案!
目前还没有任何答案,快来回答吧!