当前位置:Gxlcms > 数据库问题 > SQL 操作集合

SQL 操作集合

时间:2021-07-01 10:21:17 帮助过:5人阅读

= course.courseno where course.cname = ‘电子技术‘ ORDER BY final desc

  参考:https://www.w3school.com.cn/sql/sql_orderby.asp

 

三、like 匹配模式

  where 语句中的一种匹配模式,和 % 通配符搭配使用查询

SELECT COUNT(DISTINCT score.studentno)
FROM score join course on score.courseno = course.courseno
WHERE course.cname like ‘%软件%‘

 

四、as 别名使用

  select score.studentno, score.usually*0.4+score.final*0.6 as sco

  要注意 sco 只能在子 select 中使用

SQL 操作集合

标签:alt   top   blog   模式   排序   name   png   mic   使用   

人气教程排行