le 05/08/2006 à 16:20
JuTs
up
+-----------------+----------------------+------+-----+---------------------+-------+
| Field | Type | Null | Key | Default | Extra |
+-----------------+----------------------+------+-----+---------------------+-------+
| id_programme | smallint(5) unsigned | NO | PRI | 0 | |
| id_saisons | smallint(2) unsigned | NO | PRI | 0 | |
| id_equipes | tinyint(1) unsigned | NO | PRI | 0 | |
| id_types_groupe | tinyint(1) unsigned | NO | PRI | 0 | |
| id_groupes | smallint(4) unsigned | NO | PRI | 0 | |
| id_clubs | int(10) unsigned | NO | PRI | 0 | |
| date | datetime | NO | | 0000-00-00 00:00:00 | |
| lieu | varchar(30) | NO | | | |
| home | tinyint(1) unsigned | NO | | 0 | |
| buts | tinyint(2) | NO | | -1 | |
+-----------------+----------------------+------+-----+---------------------+-------+
programme AS p1
LEFT OUTER JOIN clubs AS clubHome ON clubHome.id_clubs = p2.id_clubs
programme AS p2
LEFT OUTER JOIN clubs AS clubHome ON clubHome.id_clubs = p1.id_clubs