search
top

Get table prefix in Magento

Hello All,

I am writing here an important code snippet for getting the table prefix (if any defined) in Magento.

$prefix = Mage::getConfig()->getTablePrefix();
echo $prefix;

4 Responses to “Get table prefix in Magento”

  1. sanayar20008 says:

    Hello,
    could you help with the steps how and where could I insert this code ?

  2. Stormcloud says:

    Very useful, thank you!

Leave a Reply

top