How To Get Table Name in Magento..?

Get Table Name in Magento : You can easily add table in Magento by using the following code.

Suppose you need to get table name category_product.

Table Name in Magento : Syntax

$resource = Mage::getSingleton('core/resource');

In Catalog module config.xml Magento define this table entity is product_index_price. So if you use table prefixes to get the name of the table you can use the above code to find the name of the table respectively.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *