阿文Blog

  BlogJava :: 首页 :: 联系 :: 聚合  :: 管理
  0 Posts :: 5 Stories :: 0 Comments :: 0 Trackbacks

1、有A,B表,显示A.name里有但B.name中没有的记录,不能用(not in)语句?
A表:
id        name
1        a
2        b
3        d
---------------------------------------------------------------------------------------------
B表:
id        name
11       b
22       c
33       d
44       e 
--------------------------------------------------------------------------------------------
select distinct.A.name from A left join B on A.name=b.name where b.name is not null
得到不重复的A.name

2、网页中调用servlet时,先显示什么?service(),dopost(),doget()?
默认是doGet()方法,先执行doPost/doGet方法,然后再执行service方法。

posted on 2008-10-17 23:10 阿文 阅读(85) 评论(0)  编辑  收藏 所属分类: JAVA技术