create table desktop ( type text, mode text) inherits (rental_f);
create table laptop (type test,mode...(id,costomerid,create_date,type,mode) values (1,23,'2021-05-01','laptop','T106');
insert into laptop...(id,costomerid,create_date,type,mode) values (3,27,'2021-05-04','laptop','T17');
insert into laptop...(id,costomerid,create_date,type,mode) values (4,21,'2021-05-05','laptop','T109');
insert into laptop...从设计的角度来看,3张表可以各有各的功用,单独对laptop进行查询则可以只查询laptop表, 而对desktop表查询可以查询到desktop的数据。