Changeset 4774 for temp/trunk/html/test


Ignore:
Timestamp:
2006/09/15 12:24:02 (20 years ago)
Author:
kakinaka
Message:

blank

File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/html/test/kakinaka/mysql.php

    r4773 r4774  
    6363    FROM 
    6464        dtb_products AS T1 RIGHT JOIN (SELECT product_id AS product_id_sub, MIN(product_code) AS product_code_min, MAX(product_code) AS product_code_max, MIN(price01) AS price01_min, MAX(price01) AS price01_max, MIN(price02) AS price02_min, MAX(price02) AS price02_max, MIN(stock) AS stock_min, MAX(stock) AS stock_max, MIN(stock_unlimited) AS stock_unlimited_min, MAX(stock_unlimited) AS stock_unlimited_max FROM dtb_products_class GROUP BY product_id) AS T2 ON T1.product_id = T2.product_id_sub 
    65     ) chvw_products_allclass ', 
     65    ) chg_vw_products_allclass ', 
    6666 
    6767    "vw_products_allclass_detail" => ' 
     
    121121*/ 
    122122 
    123 $sql = ' 
    124         (SELECT 
    125         product_id, 
    126         product_code_min, 
    127         product_code_max, 
    128         price01_min, 
    129         price01_max, 
    130         price02_min, 
    131         price02_max, 
    132         stock_min, 
    133         stock_max, 
    134         stock_unlimited_min, 
    135         stock_unlimited_max, 
    136         del_flg, 
    137         status, 
    138         name, 
    139         comment1, 
    140         comment2, 
    141         comment3, 
    142         rank, 
    143         main_list_comment, 
    144         main_image, 
    145         main_list_image, 
    146         product_flag, 
    147         deliv_date_id, 
    148         sale_limit, 
    149         point_rate, 
    150         sale_unlimited, 
    151         create_date, 
    152         deliv_fee 
    153         ,(SELECT rank AS category_rank FROM dtb_category AS T4 WHERE T1.category_id = T4.category_id) 
    154         ,(SELECT category_id AS sub_category_id FROM dtb_category T4 WHERE T1.category_id = T4.category_id) 
    155     FROM 
    156         vw_products_allclass, dtb_products AS T1 RIGHT JOIN (SELECT product_id AS product_id_sub, MIN(product_code) AS product_code_min, MAX(product_code) AS product_code_max, MIN(price01) AS price01_min, MAX(price01) AS price01_max, MIN(price02) AS price02_min, MAX(price02) AS price02_max, MIN(stock) AS stock_min, MAX(stock) AS stock_max, MIN(stock_unlimited) AS stock_unlimited_min, MAX(stock_unlimited) AS stock_unlimited_max FROM dtb_products_class GROUP BY product_id) AS T2 ON T1.product_id = T2.product_id_sub 
    157     ) cng_vw_products_allclass '; 
     123$sql = 'select * from vw_products_allclass '; 
    158124 
    159125//print(preg_replace("/[\r\n\t]/"," ",$sql)); 
     
    171137        if (stristr($sql, $key) != ""){ 
    172138            $changesql = eregi_replace("($key)", "$val", $sql); 
    173             print("------------------------------------------------------------<BR>".$changesql."------------------------------------------------------------<BR>"); 
     139            print("------------------------------------------------------------<BR>".$changesql."<BR>------------------------------------------------------------<BR>"); 
    174140            sfInArray($changesql); 
    175141        } 
Note: See TracChangeset for help on using the changeset viewer.