postgresql - How to remove white spaces for column value in database -
i collecting tweets twitter , storing them in database. in tweets of tweets coming greater white space. when storing tweets database shown in below picture.
i tried remove white spaces using regex. here query
select '(' || regexp_replace(text, e'[[:space:]]', '', 'g') || ')'from persons;
i getting following output
**output :** ('rt@cristiano:grandejogodetodaaequipa.vencemosjuntos,celebramosjuntos.@realmadrid#halamadrid#rmclasico:soccer::grinning::muscle::v::facepunch:https://t.co/…')
in above output when tried using reg-ex, original spaces missing out. how store data getting neat english text regular spaces (i.e., removing white spaces,tabs).
Comments
Post a Comment