sqlserver学习札记

sqlserver学习札记,第1张

概述项目中用的一直是hhs,所以很少接触sql语句,闲来无事就总结一下平时常用的sql语句: 1、关键字:create update alter drop insert exec  select  declare open fetch close if while case when where union  max avg min data as group by order by having 

项目中用的一直是hhs,所以很少接触SQL语句,闲来无事就总结一下平时常用的SQL语句:

1、关键字:create update alter drop insert exec  select  declare open fetch close if while case when where union 

max avg min data as group by order by having 

2、简单查询

   select * from table 

   条件查询

   select * from table where 

   字表查询

   select  a.fIEld1,b.fIEld1 from table1 a,table2 b where a.ID=b.name

  分组查询

  select name,max(column) from table group by name union vIEw 

 

3、组合查询

总结

以上是内存溢出为你收集整理的sqlserver学习札记全部内容,希望文章能够帮你解决sqlserver学习札记所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/sjk/1181482.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-02
下一篇 2022-06-02

发表评论

登录后才能评论

评论列表(0条)

保存