如果数据量不大,建议用一个表装 字段有 品牌pp、型号xh、颜色ys,通过SQL语句进行筛选,不过如果还有其他的信息,就会有冗余出现。 select pp,xh,ys from table where pp=???也可以用3各表 table1放品牌信息pp table2放行号信息pp,xh table3放颜色信息pp,xh,ys select a.pp,b.xh,c.ys from table1 a ,table2 b,table3 c where b.pp=a.pp and c.pp=b.pp and c.xh=b.xh and a.pp=???
select pp,xh,ys from table where pp=???也可以用3各表
table1放品牌信息pp
table2放行号信息pp,xh
table3放颜色信息pp,xh,ys
select a.pp,b.xh,c.ys from table1 a ,table2 b,table3 c
where b.pp=a.pp and c.pp=b.pp and c.xh=b.xh
and a.pp=???