Mysql查询数据库字段枚举的类型有哪些

例:查询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


版权声明:本文为t949500898原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。