postgresql去掉字符串空白符以及首尾空格 最简单的办法

1、去除首尾空格  select * from trim(' 测试 hu 测试 ');

 

 

2、去除所有空格   select * from replace(' 测试 hu 测试 ',' ','');

posted @ 2019-12-27 08:43  疯子110  阅读(6777)  评论(0编辑  收藏  举报