1、 查询Student表中的所有记录的Sname、Ssex和Class列。
SQL语句:select sname,ssex,class from student
Linq语句: from s in Students select new { s.SNAME, s.SSEX, s.CLASS }
Lambda表达式: Students.Select( s => new { SNAME = s.SNAME,SSEX = s.SSEX,CLASS = s.CLASS })
使用方法:每天可以背1~3句
Space Research
Pros:
1. The oldest and purest of the arguments for space exploration is the advancement of science and technology.
2. We will go into space, not to bring back things which make us richer or more comfortable here on Earth. We will go there to live and make it our home.
3. The exploration to the universe is a high ideal –space truly is the final frontier .
4. The instinct to explore is fundamentally human; already some of our most amazing achievements have taken...
1. 语法
修改单表中的记录
update 表名
set 列=新值, ...
where 筛选条件
修改多表的记录
sql92语法:
update 表1 as 别名, 表2 as 别名
set 列=新值, ...
where 连接条件
and 筛选条件
sql99语法:
update 表1 as 别名
join 表2 as 别名
on 连接条件
set 列=新值, ...
where 筛选条件
2. 修改单表的记录
案例:修改beauty表中姓周的女神的电话为119
作者:舟渡的锅儿
链接:https://www.jianshu.com/p/9a04d1e40208
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。