2011-05-11 82 views
2

我试图解决一个问题,即一些在我的表项的文件在其中一列有一个错字甲骨文列值修正

它应该阅读注意:请阅读它,而不是读ImportantPlease读

我用不来好与Oracle,但我会怎么做本质上这

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

现在我知道这是远不及Oracle Syntax附近,但我想知道你是否可以帮助我填补空白

在此先感谢,并请让我知道如果您需要进一步的解释。

回答

4

你可能想

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

试试这个:

UPDATE Documents 
SET Overview = REPLACE(Overview, 'ImportantPlease', 'Important: Please') 
WHERE Overview LIKE 'ImportantPlease%';