Bonjour,

Je voudrais creer une table avec une association reflexive, voici mon code :
CREATE TABLE probe (id_son SERIAL NOT NULL, name_son varchar(18), reste_son integer, local_son varchar(25), id_son integer,
PRIMARY KEY (id_son),
FOREIGN KEY (id_son) REFERENCES probe (id_son) ON DELETE CASCADE);

Et voici le message retourné:
NOTICE: CREATE TABLE will create implicit sequence 'probe_id_son_seq' for SERIAL column 'probe.id_son'
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index 'probe_pkey' for table 'probe'
NOTICE: CREATE TABLE will create implicit trigger(s) for FOREIGN KEY check(s)
ERROR: CREATE TABLE: attribute "id_son" duplicated

Auriez vous une idée sur mon erreur?
Merci!