将连续记录合并 记录起始和终止值 谁能简单的只用SQL实现
不知道能不能看清
这个能看清吧
说下思路也行啊 谢谢各位
select * from(select col_a from test group by col_a) a, test t where a.col_a=t.col_a order by t.col_a,t.col_b