table :
种类 图片
中国 image1
中国 image2
马来西亚 image3
马来西亚 image4
新加坡 image5
新加坡 image6上面是我的table , 有种类和图片我想输出的数据是 :
中国 image1
马来西亚 image3
新加坡 image5一个种类输出一个 , 然后取第一张图片而已
我的 sql 语句该怎么写呢 ??
种类 图片
中国 image1
中国 image2
马来西亚 image3
马来西亚 image4
新加坡 image5
新加坡 image6上面是我的table , 有种类和图片我想输出的数据是 :
中国 image1
马来西亚 image3
新加坡 image5一个种类输出一个 , 然后取第一张图片而已
我的 sql 语句该怎么写呢 ??
from tbname
grooup by 种类