【正文】
車(chē),39。)。139。嵌套查詢(xún):select Nidfrom bus where id in (select id from siji where age31)。多表查詢(xún):select cid,xingbie from bus,siji where = and age=39。139。,39。339。339。,39。239。insertinto bus(cid,id,nid,leixing,nian,time)values(39。839。,39。建立siji表:CREATE table siji(id char(10)not null primary key, mingzi char(10)not null, xingbie char(2)not null, age int not null, age2 char(5)not null, constraint C1 check(age=25 and age2=5), tel char(12) not null)增加數(shù)據(jù)到bus表中 insertinto bus(cid,id,nid,leixing,nian,time)value