-
轉換前:select count(*) as counts from product where find_in_set(:class_id, class_id) and deleted=0 ;
單衣鉤 BA-20101
POST TIME:2019-06-20雙衣鉤 BA-20102
POST TIME:2019-06-20紙巾架 BA-20103
POST TIME:2019-06-20毛巾環 BA-20104
POST TIME:2019-06-20馬桶刷座 BA-20105
POST TIME:2019-06-20毛巾單杠 BA-20106
POST TIME:2019-06-20毛巾雙桿 BA-20107
POST TIME:2019-06-20毛巾架 BA-20108
POST TIME:2019-06-20單層置物架 BA-20109
POST TIME:2019-06-20
轉換后:select count(*) as counts from product where find_in_set(37, class_id) and deleted=0 ;
轉換前:select id,rid,class_id,path,title as title,images,images_s,orders,addtime from product where find_in_set(:class_id, class_id) and deleted=0 order by orders desc,id DESC , mdtime desc limit 9;
轉換后:select id,rid,class_id,path,title as title,images,images_s,orders,addtime from product where find_in_set(37, class_id) and deleted=0 order by orders desc,id DESC , mdtime desc limit 9;
轉換前:select id,product_id,images,images_s,images_name from product_photo where product_id in (846,845,844,843,842,841,840,839,838) and deleted=0 order by orders,id;
轉換后:select id,product_id,images,images_s,images_name from product_photo where product_id in (846,845,844,843,842,841,840,839,838) and deleted=0 order by orders,id;