navicat选择查询表内的命令可以用,但直接查询表就不写

img


明明已经导入数据表了,用查询命令,其他都能运行但,select * from 表名 和select distinct from 表名,运行结果都不行

img

语法写错了

select distinct(字段名称) from 表名

img


是不是这个写错了


select distinct * from employees

参考如下 希望被采纳多谢

select * from hyh_city

select DISTINCT c.region_id from hyh_city c

得到如下结果

img