欢迎来到PHP菜鸟博客    登录
我的订单    |  会员中心  
     
就算这个世道烂成一堆粪坑,那也不是你吃屎的理由!!
购物车

首页 > mysql > 产品详情

mysql order by 字段运算 以及查询 字段goodsid 1,2,3,4 中包含 3

 

9999.00    (库存:有货)

已超出库存数量!

  • 详情
$sql = "select   *  from  `znxfy_user_card`  where  user_id='$uid'    and   concat(',',goodsid,',') like '%,$id,%'  and unix_timestamp(now())-active_time<=yx_date*24*60*60 and remain_number>0  order by   active_time+yx_date*24*60*60-unix_timestamp(now())  desc limit 1";