Einzelnen Beitrag anzeigen
Alt 21.07.2005, 10:17   #2
hewlett
Inventar
 
Registriert seit: 08.11.2000
Alter: 42
Beiträge: 1.524


Standard

und wo ist da dann das problem?

ich würds sowieso anders machen:

Eine dritte Tabelle (TeamPlayer oder so) in der die play_id und team_id gespeichert ist, und im der team table team_player1 und team_player2 rausnehmen, so kannst du dann beliebig viele Spieler einem Team zuordnen.

Code:
[player]
play_id | name | cname
1          x      y
2          c      d
3          d      e
4          r      j
5          s      a

[team]
team_id | name
1         abc
2         efg
3         hij

[teamplayer]
id | team_id_fk | play_id_fk
1        1            1
2        1            2
3        1            3
4        1            5
5        2            4
So würd ichs machen!
____________________________________
H.E.W.L.E.T.T.: Hydraulic Electronic Worker Limited to Exploration and Terran Troubleshooting
hewlett ist offline   Mit Zitat antworten