表tb_record类似这样:
mid content
101 a1
101 a2
101 a3
102 b1
102 b2
103 c1
103 c2
现在我想查每个mid的第一条数据,最后得到类似这样的结果:
mid content
101 a1
102 b1
103 c1
这个表没有id a1、a2,sqlserver没有rowid,但是可以用sys.fn_PhysLocFormatter(%%physloc%%)来替代
请问在sql里该怎么查询
莫回无
慕姐8265434
随时随地看视频慕课网APP
相关分类