DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SQL
trim leading zeros in sql
SUBSTRING(str_col, PATINDEX('%[^0]%', str_col+'.'), LEN(str_col))
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#trim
#leading
#zeros
#sql
ADD COMMENT
Topic
COMMENT
Name
2+4 =
Submit