i have data like 142456,Thakur Vinay,First.how to get name using substring in mysql? -
142456, vinay singh, first
i want name above data usingsubstringfunction in mysql
please can suggest this
if pattern same strings following should trick
mysql> select substring_index( substring_index('142456, vinay singh, first',',',2),',',-1); +------------------------------------------------------------------------------+ | substring_index( substring_index('142456, vinay singh, first',',',2),',',-1) | +------------------------------------------------------------------------------+ | vinay singh | +------------------------------------------------------------------------------+
Comments
Post a Comment