好像在weblogic中是用GROUPBY
其它不知道 ------------------------------------------------------
           我们还年轻牛奶会有的奶牛也会有的 
             可天天在 csdn 混这些会有吗 ??

解决方案 »

  1.   

    查找所有学生没有重复的住址;
    SELECT DISTINCT O.address FROM StudentEJB AS O
      

  2.   

    select * from table1 group by col1
    use distinct but not group by;)if you use 'count(*),col1' in your sql then add group by col1 
    at then end of sql.select distinct * from table1 --useage of distinct
    or
    select count(*),col1 from table1 group by col1  --useage of group by.
      

  3.   

    没有用呀,find的方法应该返回beans,不能返回其中的某一字段
      

  4.   

    在cmp里面写的方法一般 返回connectin 或者iterator