Advertisement
eurismarpires

Remover espaços do meio de uma string

Oct 5th, 2018
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PL/SQL 0.32 KB | None | 0 0
  1. SELECT REGEXP_REPLACE('QUADRA317                 LOTE  19                  CASA  01 ', '( ){2,}', ' ') FROM DUAL;
  2.  
  3.  
  4.  SELECT regexp_replace('This    string  contains       more    than  one    spacing       between     the        words','( ){2,}',' ') regexp_replace FROM dual;
  5.  
  6. --http://www.dba-oracle.com/t_regexp_replace.htm
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement