If you are working on a BIG project with lots of tables in the database, then it will be a good trick query for you to find out a column name of any table from that database.
My scenario was a bit different, I had to start work in the middle of a project and there was no one to guide/help me regarding anything. And you know, about the deadline… really messed up. So, I didn’t hopeless and as usual did some google and prepare this query.
“SELECT TABLE_NAME, COLUMN_NAME
WHERE column_name LIKE ‘your_column_name’ “
As you can see it search information schema for the column name you are finding after the LIKE clause. And this query saved me and my ass 😉
I am writing this article for my future reference. Hope it will also help you and save your ass too 😉 as like mine. If this article save your time then you can comment and share this article to save others too. [sharing is caring]
[Note: May be you can find this query on other sites. As I said I did some google and make for me. Sorry forgot those site otherwise I put those on ref. section like my other post.]
We are building website and applications on localhost and I use XAMPP package on Linux for my local development.
After installing Xampp, we always get a default home page from Xampp and most of the time we don’t need that. Basically before writing this article I always delete all items of htdocs/www folder, but sometimes we need to know things like versions and if functions are enable or not and also the limits various variables. So by using the below script you can easily get a good view of your localhost’s projects (as a list) and as well as databases from phpmyadmin. And you dont need to delete anything on htdocs folder and get all thing whenever you need.
In the header put this css code into the style tag for a better view