我的question表中,有type列名,里面有语文,数字数据,我用select type from question,结果列出来都是重复的,我想要的是不重复的,请问各位有什么好的方法吗?

解决方案 »

  1.   

    select distinct type from question
      

  2.   


    select distinct type from question
      

  3.   

    select distinct type from question--或者select type from question group by type
      

  4.   

    --or
    select type from question group by type
      

  5.   


    select distinct type from question
      

  6.   

    select distinct type from question
      

  7.   

    SQL codeselectdistinct typefrom question

    select typefrom questiongroupby type