1.先分组 group by-----然后在分组里面继续选择-----having

select product_type,count(*) from prodect  group by product_type  having count(*)=2   

sql常忘记的操作

2.order by 排序1,排序2

sql常忘记的操作

3.insert  into 表名  (列名1,2,3)   values (值1,2,3)

sql常忘记的操作

sql常忘记的操作

sql常忘记的操作

复制表----insert into select  from

sql常忘记的操作

sql常忘记的操作


update 表名 

set () 

where 

sql常忘记的操作

sql常忘记的操作

相关文章:

  • 2021-11-02
  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-07
  • 2021-07-05
  • 2021-12-09
猜你喜欢
  • 2022-02-12
  • 2021-07-06
  • 2021-10-19
  • 2022-12-23
  • 2021-04-09
  • 2021-09-05
  • 2022-03-05
相关资源
相似解决方案