DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
1+9 =
Submit