MySQL select instr -




i have column path & name & extension of file. select name & extension.

example :

/xmlweb/processdescriptor/descriptor/local/currencies/tl_rn_tth.xml

how select "tl_rn_tth.xml" ?

use substring_index negative parameter:

select substring_index(path_column, '/', -1) your_table 




wiki

Comments

Popular posts from this blog

elasticsearch - what is the equivalent data type for geo_point in hibernate search? -

firebase - How to wait value in Ionic 2 -

Jenkins: find build number for git commit -