SELECT fm.factory_no,fm.tmp_jit,p.standard,substring(p.standard,1,12) standard_short,p.under_stock,p.fanli,p.prod_no,p.prod_name,p.web_name,substring(p.web_name,1,12) web_name_short, p.fanli,p.ref_memo,p.sub_title,p.rebuy_price,p.comp_price,p.normal_price,p.pv,product_img.name
FROM product_m AS p LEFT JOIN product_img ON p.prod_no=product_img.prod_no and product_img.prev=1 ,factory fm,factory_d fd
WHERE p.group_show=1 and fm.factory_no = fd.factory_no and fd.prod_no =p.prod_no and p.prod_no IN(SELECT prod_no FROM product_kind WHERE link_no IN(SELECT link_no FROM kind_link WHERE level1=1041 and level2= and level3=)) and ( (start_time<='1732464000' and end_time=0)
or (start_time<='1732464000' and end_time>'1732464000')) group by p.prod_no
insert into sql_log values('sql_all','','SELECT fm.factory_no,fm.tmp_jit,p.standard,substring(p.standard,1,12) standard_short,p.under_stock,p.fanli,p.prod_no,p.prod_name,p.web_name,substring(p.web_name,1,12) web_name_short, p.fanli,p.ref_memo,p.sub_title,p.rebuy_price,p.comp_price,p.normal_price,p.pv,product_img.name
FROM product_m AS p LEFT JOIN product_img ON p.prod_no=product_img.prod_no and product_img.prev=1 ,factory fm,factory_d fd
WHERE p.group_show=1 and fm.factory_no = fd.factory_no and fd.prod_no =p.prod_no and p.prod_no IN(SELECT prod_no FROM product_kind WHERE link_no IN(SELECT link_no FROM kind_link WHERE level1=1041 and level2= and level3=)) and ( (start_time<='1732464000' and end_time=0)
or (start_time<='1732464000' and end_time>'1732464000')) group by p.prod_no','1732498336','','3.14.249.124')
Notice: Could not query database!! in E:\web\chmove\Connection\dbclass.php on line 117
>> 共 項商品
|
|