MySql 数据库查询字段重复解决方案

select  dev_type as typeId, dev_type_name as typeName from my_base_device_field

MySql 数据库查询字段重复解决方案_第1张图片

 

select DISTINCT dev_type as typeId, dev_type_name as typeName from my_base_device_field

MySql 数据库查询字段重复解决方案_第2张图片

 

 

你可能感兴趣的:(Mysql,Mybatis,mysql)