好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

SQL语句练习

select count ( * ) from product where product_name like " % 短袖 % "
 shop 表 中有shop_name、channel_id、status、
product 表  product_name、spu、create_datetime

想要查找 符合 product_name为上衣短袖且spu是123且create_datetime为2021年5月5日,channel_id为JD的shop_name

UID关联字段
  select  s.shop_name  from  shop s  left   join  product p  on  s.UID = p.UID and p.product_name = "上衣短袖"  and  p.spu = " 123 "  and  p.create_datetime = "2021年5月5日"  and  s.channel_id = "JD"

 

SQL语句练习

标签:查找   col   字段   channel   sql语句   from   select   1年   stat   

查看更多关于SQL语句练习的详细内容...

  阅读:23次