gpt4 book ai didi

sql - Oracle列值修改

转载 作者:行者123 更新时间:2023-12-02 07:10:56 24 4
gpt4 key购买 nike

我正在尝试解决一个问题,即我的表 Documents 中的某些项目在其中一列中有错字

它应该显示为重要:请阅读,它显示为重要请阅读

我对 Oracle 的使用不太好,但我基本上应该怎么做

Update Documents Set Overview = "Imporantant: Please Read " + 
Overview.SubStr(19, Overview.Length) Where Overview Like 'ImportantPlease Read%'

现在我知道这与 Oracle 语法相去甚远,但我想知道您是否可以帮我填补空白

在此先感谢,如果您需要进一步的解释,请告诉我。

最佳答案

你可能想要

UPDATE documents
SET overview = 'Important: Please Read ' || substr( overview, 19 )
WHERE overview LIKE 'ImportantPlease Read%'

关于sql - Oracle列值修改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5971122/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com