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
Post a Comment