Tag : SUBSTRING_INDEX()

ItSolutionStuff.com have tutorials for SUBSTRING_INDEX() tag, here you can study articles of SUBSTRING_INDEX() tag, SUBSTRING_INDEX() tag posts collection, most popular and useful tutorials of SUBSTRING_INDEX() tag, here you can find list of all relevant posts and example about SUBSTRING_INDEX() tag, we have lists of tutorials and examples about SUBSTRING_INDEX() tag. very simple and quick example collection of Latest SUBSTRING_INDEX() tag.



How to get filename from file path in MySQL?

Sometimes we require to get filenames from path of table column in MySQL. If you are working on PHP then you can simply use basename() pre-define function of code PHP, But in MySQL you can't use basename() in select query. This mysql function you can use in code PHP, PHP framework like laravel, codeigniter etc. However, you can get simply filename or image name from path using SUBSTRING_INDEX() of MySQL. You can extract filename from path using substring_index(), substring_index() take three argument, first for column name, second for split string chat, and third get last element from split. .....

By Hardik Savani | November 30, 2016 | | 23749 Viewer | Category : PHP MySql
READ MORE