2011-04-25 52 views

回答

3

找出用于获取客户数据做查询,这可能是EAV结构,其中所有数据保存:

<?php echo Mage::getModel('customer/customer')->getCollection()->getSelect();?> 

或本

<?php echo Mage::getModel('customer/customer')->load('customerid')->getSelect();?> 

,并找出哪些字段可用于默认收集或加载:

<?php print_r(Mage::getModel('customer/customer')->getCollection()->getFirstItem()->getData());?> 

或此

<?php print_r(Mage::getModel('customer/customer')->load('customerid')->getData());?> 
0

Anton的答案对于通过Magento框架访问数据是正确的。为了从字面上回答您的问题,下列表格存储了基本客户数据:

+----------------------------------+ 
| Tables_in_entp (customer%)  | 
+----------------------------------+ 
| customer_address_entity   | 
| customer_address_entity_datetime | 
| customer_address_entity_decimal | 
| customer_address_entity_int  | 
| customer_address_entity_text  | 
| customer_address_entity_varchar | 
| customer_entity     | 
| customer_entity_datetime   | 
| customer_entity_decimal   | 
| customer_entity_int    | 
| customer_entity_text    | 
| customer_entity_varchar   | 
+----------------------------------+