您当前的位置: 首页 >  sql

不会翻墙的泰隆

暂无认证

  • 4浏览

    0关注

    31博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

mysql 高级查询

不会翻墙的泰隆 发布时间:2020-01-19 19:24:03 ,浏览量:4

  • 查询指定字段
select name,age from students;
  • 起别名
select name as 姓名,age as 年龄 from students;

select s.name s.age from students as s;
  • 去重
select name as 姓名,age as 年龄 from students;

select s.name s.age from students as s;
  • 条件查询
--比较运算符.. > < >== 18;
逻辑运算符
--and or not
查看18到28岁之间的所有学生的信息
select* from students
where age>18 and age            
关注
打赏
1658128969
查看更多评论
0.0397s