当我这样做时,我的表名是RJD (CMTS):
select CMTS from RJD输出:
11/24/2020 3:49:23 PM - Padhiyar, Akash this is approved comment 3 approved
11/24/2020 3:49:11 PM - Padhiyar, Akash this is reviewing comment 2 Reviewing
11/24/2020 3:48:58 PM - Padhiyar, Akash this is idea comment 1 Idea我想从所有的记录中删除最后一个词。在sql中。
输出应该是这样的。
11/24/2020 3:49:23 PM - Padhiyar, Akash this is approved comment 3
11/24/2020 3:49:11 PM - Padhiyar, Akash this is reviewing comment 2
11/24/2020 3:48:58 PM - Padhiyar, Akash this is idea comment 1可以有人建议sql查询解决方案为此。
发布于 2020-11-26 22:28:04
您可以使用:
select rtrim(left(cmts,
len(cmts) - charindex(' ', reverse(cmts))
)
)Here是一个SQL。
https://stackoverflow.com/questions/65023920
复制相似问题