MySQL完成多表查询 create table price id int primary key auto_increment price double;-- 水果 ncreate table fruitid int primary key auto_incrementname varchar20 not nullprice_id int foreign keyprice_id refer
-- 查询结果只需要显示水果名称和价格,不需要显示id select fruit.name, price.price from fruit, price where fruit.price_id=price.id;
原文地址: https://www.cveoy.top/t/topic/fWly 著作权归作者所有。请勿转载和采集!