abap 如何去掉重复项
答案:2 悬赏:40 手机版
解决时间 2021-03-15 23:52
- 提问者网友:星軌
- 2021-03-15 14:44
abap 如何去掉重复项
最佳答案
- 五星知识达人网友:狂恋
- 2021-03-15 14:51
SORT itab BY col1.
DELETe ADJACENT DUPLICATES FROM itab COMPARING col1.
如果想用多个字段去重:
SORT itab BY col1 col2.
DELETe ADJACENT DUPLICATES FROM itab COMPARING col1 col2.
如果想用全部字段的话:
SORT itab.
DELETe ADJACENT DUPLICATES FROM itab COMPARING ALL FIELDS .
DELETe ADJACENT DUPLICATES FROM itab COMPARING col1.
如果想用多个字段去重:
SORT itab BY col1 col2.
DELETe ADJACENT DUPLICATES FROM itab COMPARING col1 col2.
如果想用全部字段的话:
SORT itab.
DELETe ADJACENT DUPLICATES FROM itab COMPARING ALL FIELDS .
全部回答
- 1楼网友:污到你湿
- 2021-03-15 15:48
sort 内表名 by 排序字段名
delete adjacent duplicates
如果我理解得不对请继续提问
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯