例:查询table_example表中,group_type=2的情况下,status一共有几种枚举的类型
select distinct status from table_example where group_type=2 group by status;
返回结果:
status |
---|
begin |
end |
即返回的结果中一共有两种值type,分别是begin,end
例:查询table_example表中,group_type=2的情况下,status一共有几种枚举的类型
select distinct status from table_example where group_type=2 group by status;
返回结果:
status |
---|
begin |
end |
即返回的结果中一共有两种值type,分别是begin,end