如图 ,查询出有3个方向以上的路的编号:
select crossid from test where name is not null group by crossid having count(distinct(fx))>=3;
查询结果:
如图 ,查询出有3个方向以上的路的编号:
select crossid from test where name is not null group by crossid having count(distinct(fx))>=3;
查询结果: