sql - how to select substring from concatenated filed? -


i have requirement want substring of concatenated column in database. length can vary different records pattern same.
example :
want value 4306657|aa-bb-cc-xx-10|5194| column value 4306657|aa-bb-cc-xx-10|5194|billing.
select statement or function ?

use substring function in mysql. here syntax of function

substring(str, pos, len) 

where
str = input string,
pos = integer indicating string position within string str,
len = integer indicating number of characters returned.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -