MySQL的基本语法

  今天是开学第三天,算是正式开始学习了吧。第一天基本是老师在向我们介绍软件测试要了解什么方面的知识,以后要做些什么。第二天主要是练习了一下怎么写需求文档,感觉这个确实挺难写的,毕竟我文字表达能力感觉不是太好,只能说以后慢慢练习吧。

  今天学了MySQL的几个基本语法,感觉确实挺蛋疼的,最主要是没有提示这一点感觉有点不太舒服。之前学的OC相对来说会感觉好很多。而且感觉好多东西都没讲啊,像是数据类型 ,感觉还是稍微有必要讲一下的有一些数据后面要填什么内容都要自己专门去查=-=。

  也不知道在说些什么了 只能用作业来顶了。

  1.select sno,sname,ssex from student;

  2.select distinct depart from teacher;

  3.select * from student;

  4.select * from score where degree between 60 and 80;(大于等于60 小于等于80)

     select * from score where degree>=60 and degree<=80;

  5.select * from score where degree=86 or degree=85 or degree=88;

   select *from score where degree in(85,86,88);

  6.select * from student where class="95031" or ssex="女";

  7.select * from student order by class;

  8.select * from score order by sno and degree desc;

  9.select count(*) from student where class="95031";

  10.

  11.

  12.

  13.select sno from score where degree between 70 and 90;

  14.

  其他=-=

  真的是不会了 整个人都懵逼了。 上网查说真的都不知道该如何查了 蛋疼 

  

   

原文地址:https://www.cnblogs.com/assassin3154/p/7774772.html