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

  • 内容
  • 评论
  • 相关
$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";

本文标签:这篇文章木有标签

版权声明:若无特殊注明,本文皆为《菜鸟站长》原创,转载请保留文章出处。

本文链接:mysql order by 字段运算 以及查询 字段goodsid 1,2,3,4 中包含 3 - http://wziyi.net/?post=65

发表评论

电子邮件地址不会被公开。 必填项已用*标注