Código:
create table test ( id int not null auto_increment , parent_id int not null , camp int not null , primary key (id) , [key o index] (parent_id) ...