Sometimes if you want some specific attribute and do some code based on that attribute then below code will give the exact solution for catalog product.So here I am going to show you How we can fetch all Magento list of catalog product attributes and attributeset .I mean I am going to show you how to fetch all attribute codes and name and with all attributes sets having name and Id.Generally this situations happens when we will try to add an attributes in catalog product section and that is not showing in our attribute section then we want to check th database section.But I you will be getting all by code then no need to go data base section
Also If you would like to check all attribute sets for a particular product then its better to check below code.And for getting all attribute sets store in entity attribute table then we can fetch by a simple way.All coding I have just done through custom script by means you can place your custom script inside root directory of your magento installation folder then run with magento base URL. So.So then after you will betting your all requirements.
In the above example I have set the code to find out all attributes and attribute set details.So if we categories them individually then I can guess you will be understood better.
So below details are individual parts:
In all above parts I have set entityType to filter from database.like to fetch data details from table eav_entity_attribute table with filterable data for which entity type we want get data.