oracle函数 TRIM(c1 from c2)

[Function] Delete string appears on the right and left

Parameters C2 before deleting a string

c1 delete string, the default is a space

[Back] character

 

[Example]

 select TRIM('X' from 'XXXgao qian jingXXXX'),TRIM('X' from 'XXXgaoXXjingXXXX') text from dual;

Return: gao qian jing gaoXXjing

 

[Similar] LTRIM () appears to the left to delete a string RTRIM () Delete string appears on the right

Guess you like

Origin www.cnblogs.com/fanweisheng/p/11120081.html
C2
C1