相关疑难解决方法(0)

桌子太多了; MySQL在连接中只能使用61个表

从MySQL中的多个表导出数据的最佳方法是什么?我基本上都在处理产品细节.假设产品有150个数据属性.如何将其导出到一行,然后将其导出为CSV或tabdelimited格式的平面文件.

获取错误表太多; MySQL在连接中只能使用61个表

/**** Get Resultset *****/
$rs = mysql_query($sql);
/**** End of Get Resultset *****/

$objProfileHistory->addHistory($this->profile_id, "Loaded ". mysql_num_rows($rs)." records");


$this->runQuery($sql);

$this->exportToCSV();

/**
  * getAttributeDetails
  */
function getAttributeDetails(){
    global $dbObj, $profile;

    $base_table = "catalog_product_entity";
    $select  = array();
    $tables  = array();
    $i   = 0;

    $profile->showLog("Start fields mapping", "success");

   if( is_array($this->attributes_in_db) && sizeof($this->attributes_in_db) > 0 ){
    $arr = implode("','", $this->attributes_in_db);
    $sql = "select attribute_id, attribute_code, backend_type, frontend_input
        from eav_attribute 
        where attribute_code in ('".$arr."') 
        and entity_type_id = 
         (select entity_type_id 
          from eav_entity_type 
          where …
Run Code Online (Sandbox Code Playgroud)

mysql join entity-attribute-value

11
推荐指数
1
解决办法
2万
查看次数

标签 统计

entity-attribute-value ×1

join ×1

mysql ×1