Set ENGINEBEHAVIOR 70
Close Databases
Create Cursor tt (编号 C(10))
Insert Into tt Values ("200112001")
Insert Into tt Values ("200112002")
Insert Into tt Values ("200112003")
Insert Into tt Values ("200112004")
Insert Into tt Values ("200112005")
Insert Into tt Values ("200123001")
Insert Into tt Values ("200134001")
Insert Into tt Values ("200113001")
Insert Into tt Values ("200213001")
Select TOP 1 编号, Substr(编号, 7, 3) As X From tt ;
Order By 编号 Desc Group By 编号 Where Left(编号, 6) = "200112"
团队红星二锅头,队长王猛,领队李冲,顾问杨伟,副队张挺,外联马彪,内勤韩秀,人事顾闯,财务赵魁,后勤周强