kitsoRik Asked:2020-09-16 14:02:07 +0000 UTC2020-09-16 14:02:07 +0000 UTC 2020-09-16 14:02:07 +0000 UTC 记录独特的记录 772 我有一个表,其中有一列中有很多信息。列名 - operators,其值可以完全不同,可以是数字也可以是单词,与 - 背道而驰1,5,7,WORD, 1312, 663, 5, WORD, 663。 您需要获得唯一的记录,即 在这种情况下,只有 6 个(1, 5, 7, WORD, 1312, 663,其余重复)。 mysql 1 个回答 Voted Best Answer teran 2020-09-16T14:07:07Z2020-09-16T14:07:07Z count - count(), 唯一的distinct select count(distinct operators) from mytable
count -
count()
, 唯一的distinct