【正文】
嵌套查詢(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。139。)。,39。雙層公車(chē),39。339。339。339。)。,39。單層公車(chē),39。239。,39。insertinto bus(cid,id,nid,leixing,nian,time)values(39。2016 06 0139。839。,39。,39。,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表中 insertint