select bb,aa,cc 
from test
where rowid( select distinct bb from test)或者你以主关键字来链接

解决方案 »

  1.   

    错了,少了个in
    select bb,aa,cc 
    from test
    where KeyID in ( select distinct KeyID from test)KeyID 是你定义的主关键字
      

  2.   

    你的语句可以的。只是你写错了。
    select distinct bb,aa,cc from test
      

  3.   

    select * from test where rowid in(
    select max(rowid) rid from test group by bb);
      

  4.   

    谁说的啊,楼主,bzszp(www.bzszp.533.net) 说的完全正确,你应该试试嘛。如果正确,别忘记给我加分哦!