当前位置: 首页 > article >正文

10.8 sql语句查询(未知的)

1.查询结果去重

关键字:distinct  (放在查询的后面)

AC:

select distinct university from user_profile

2.查询结果限制返回行数

关键字:limit

AC:

select device_id from user_profile limit 0,2

3.将查询后的列重新命名

关键字:as

AC:

select device_id as user_infos_example from user_profile limit 0,2

4.查找后排序

关键字:order by asc/desc (升/降)

AC:

select device_id,age from user_profile order by age asc


http://www.kler.cn/news/339108.html

相关文章:

  • 等保测评的转型,对于提升我国网络空间的安全防护水平具有重要意义
  • 初始爬虫11
  • Comfyui segmentAnythingUltra V2报错
  • Chromium 搜索引擎功能浅析c++
  • Android 电源管理各个版本的变动和限制
  • 一个开源可本地部署的英文翻译服务----EnToZhAPI
  • qt登录界面的完善
  • 【CSS in Depth 2 精译_045】7.1 CSS 响应式设计中的移动端优先设计原则(上)
  • Python | Leetcode Python题解之第456题132模式
  • 0-1开发自己的obsidian plugin DAY 8
  • springboot 打包部署jsp页面两种方式war/jar
  • 中文llama3仿openai api实战
  • Python虚拟环境打包
  • 【题解】【模拟】—— [NOIP2013 普及组] 表达式求值
  • 【物流配送中心选址问题】基于改进粒子群算法
  • 回归预测 | Matlab基于SABO-SVR减法平均算法优化支持向量机的数据多输入单输出回归预测
  • 力扣之603.连续空余座位
  • Spring Boot:打造下一代医院管理系统
  • Go语言实现长连接并发框架 - 消息
  • 根据视频id查询播放量