create table cat( id int unsigned not null primary key auto_increment, pid , path ) not null default '', name ) not null default '' )engine=MyISAM default charset=utf8; ,,,,,,,,,,,,'0,1,3,6','jsp'); select id, concat(path, ',', id) as abspath from ca…