SELECT DISTINCT au_id
FROM titleauthor

解决方案 »

  1.   

    select distinct XXX,XXX from XXX 
    where XXX;
      

  2.   

    select distinct field from table where ...
      

  3.   

    csdn好有意思哦,
    我们同时发的贴,
    被人抢先了,呵呵
      

  4.   

    Please be careful to use distinct. Because extra memory will be allocated for sorting the record (If memory is not enough to do this job, hard disk will perform it), so it will slow down the sql execution.