rtrim

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



 
hi list. 
 
if there's anyone here who's familiar with teh rtrim function, please i need 
help. 
 
i have a table that has a column in it that has data in this format: 
 
California, USA 
Nevada, USA 
. 
. 
. 
 
when i use rtrim to erase the ", USA" part, it only sometimes work. a sample 
result would be: 
 
California 
Nevad 
 
my query statement is: 
update table set name=rtrim(name,', USA'); 
 
why is it that it only works sometimes? 


[Index of Archives]     [Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

  Powered by Linux