Does update support the returning statement?

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: update 是否支持returning语句

| username: TiDBer_CnmB0Ekn

【TiDB Usage Environment】Production / Testing / PoC
【TiDB Version】v6.1
【Encountered Problem】
【Reproduction Path】What operations were performed that led to the problem
【Problem Phenomenon and Impact】


gorm update returns the modified data, only applicable to databases that support Returning. Does TiDB support this?

【Attachments】

Please provide the version information of each component, such as cdc/tikv, which can be obtained by executing cdc version/tikv-server --version.

| username: CuteRay | Original post link

TiDB does not support the RETURNING keyword yet.