create table cat
(
id int not null auto_increment primary key,
name varchar(30),
PCID int not null
)ID: 分类ID
name:分类名称
PC: 父级分类ID
(
id int not null auto_increment primary key,
name varchar(30),
PCID int not null
)ID: 分类ID
name:分类名称
PC: 父级分类ID
能说得再详细一点吗?
那你怎么操作啊?这样可能会调用很多次数据操作啊,个人觉得调用数据库操作最好资源了。频繁相同取值建议用session解决啊