postgre 提取字符串中的数字
可以使用regexp_replace 函数
用法:regexp_replace (source, pattern, replacement_string, [, flags])
source 列,pattern 正则表达式 replacement_string 替换 最后一个是正则表达式的匹配行为
SELECT regexp_replace(details, '[^0-9]+', '', 'g') FROM transactions WHERE details LIKE 'Used as payment on order%'
 
                    
                     
                    
                 
                    
                
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号