sql = "select h_contents,h_update,count(1) from huida where ********* group by h_contents,h_update order by id asc" 这样的话 会提示 不能比较或排序 text、ntext 和 image 数据类型 用聚合函数就要将其他字段group by 我擦 分组 不分组 全都出错 这是搞哪样
select cast(h_contents as varchar(8000)) h_contents,h_update,count(1) from huida where *********
group by cast(h_contents as varchar(8000)),h_update order by id asc