skip to main
|
skip to sidebar
Friday, September 28, 2007
isnumber in sql
http://laurentschneider.com/wordpress/2007/09/isnumber-in-sql.html
select x,
case when
regexp_like(:x, ‘^[+-]?(\d+\.?\d*\.\d+)([eE][+-]?\d+)?$’)
then to_number(x)
end n
from t;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
About the Author
Salesforce. Lurk.
Sortitious (randomly selected)
alternative titles:
FRTM
Your Script Is A Thing Of Beauty, But How Do I Do It Manually?
Blog Archive
►
2020
(1)
►
November
(1)
►
2019
(3)
►
July
(1)
►
May
(1)
►
March
(1)
►
2018
(2)
►
May
(1)
►
April
(1)
►
2017
(2)
►
May
(1)
►
March
(1)
►
2016
(2)
►
September
(1)
►
January
(1)
►
2014
(9)
►
December
(1)
►
August
(1)
►
July
(1)
►
June
(1)
►
March
(2)
►
February
(3)
►
2013
(12)
►
November
(2)
►
August
(1)
►
July
(1)
►
June
(2)
►
May
(1)
►
April
(3)
►
March
(1)
►
February
(1)
►
2012
(7)
►
October
(1)
►
September
(1)
►
August
(2)
►
July
(2)
►
May
(1)
►
2011
(6)
►
November
(3)
►
March
(2)
►
February
(1)
►
2010
(7)
►
June
(2)
►
March
(1)
►
February
(4)
►
2009
(20)
►
December
(5)
►
November
(4)
►
October
(1)
►
September
(1)
►
August
(1)
►
July
(2)
►
June
(3)
►
May
(1)
►
March
(1)
►
January
(1)
►
2008
(23)
►
November
(2)
►
October
(1)
►
September
(1)
►
July
(4)
►
June
(2)
►
May
(4)
►
April
(1)
►
March
(1)
►
February
(4)
►
January
(3)
▼
2007
(37)
►
December
(2)
►
October
(2)
▼
September
(6)
isnumber in sql
Wherescape Red and multi stage ETL
Wherescape Red and data repositories
Wherescape Red and fixed width text source
Wherescape Red and creating facts
Wherescape Red and projects
►
August
(15)
►
July
(12)
Is there such a thing as random context?
Tags
Bookmarks
No comments:
Post a Comment