Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

postgres extract number from string

SELECT NULLIF(regexp_replace(po_number, 'D','','g'), '')::numeric AS result
FROM   tbl;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #postgres #extract #number #string
ADD COMMENT
Topic
Name
1+9 =