access的技巧
?1、取前100记录 select top 100? * from NCTDLY_QSYJFL 2、多表更新 update nct1_totalcollect t,nc_cantoncode c? set t.lv=c.leveled? where c.cantoncode=t.cantoncode 3、访问多个不同的ACCESS数据库-在SQL中使用In子句: 4、外连的使用 ?select a.cantoncode,a.gdpdj,a.abm01,b.bbm01? from (select cantoncode,gdpdj,sum(bm01) as abm01? from nct_parcelcollect n where n.bm01>0 AND gdpdj='1' and gdlx='T'? group by cantoncode,gdlx) aleft join (select cantoncode,sum(bm01) as bbm01 from nct_parcelcollect n where n.bm01>0 AND gdpdj='1' and gdlx<>'T'? group by cantoncode,gdlx) bon? a.cantoncode =b.cantoncode (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |