-
Oracle中的Change(替换字符串)命令
-
-
SQL> help change
-
-
CHANGE
-
------
-
-
Changes the first occurrence of the specified text on the current line of the SQL buffer.
-
The buffer has no command history list and does not record SQL*Plus commands.
-
-
C[HANGE] sepchar old [sepchar [new[sepchar]]]
-
-
可以用Change命令来改变字符串(即替换字符串)
-
语法如下:
-
C[HANGE] sepchar old [sepchar [new [sepchar]]]
-
Sepchar为分隔符,可以是”/”或”!” --请使用者特别注意
-
Old旧字串
-
New新字串
-
-
例:将 除号(/)改为 乘号(*),则需要命令为c!/!*。即:
-
SQL> l
-
1* select sal,sal/100 from emp
-
SQL> /
-
-
提醒:对于修改 / 字符只能用 ! 来作分隔符(上例)。
-
-
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/28878983/viewspace-2136078/
,如需转载,请注明出处,否则将追究法律责任。