摘要: SELECT CONCAT("SQL ", "Runoob ", "Gooogle ", "Facebook") AS 连接1, CONCAT_WS("-", "SQL", "Tutorial", "is", "fun!")AS 连接2 阅读全文
posted @ 2020-06-24 23:57 limalove 阅读(211) 评论(0) 推荐(0)
摘要: 思路:主要是看每门课程下,对于每个分数,该课程大于该分数的有几个 保留名次空缺: select a.cid, a.sid, a.score , count(a.score<b.score)+1 as rank from sc a left join sc b on a.cid=b.cid and a 阅读全文
posted @ 2020-06-24 22:10 limalove 阅读(840) 评论(0) 推荐(0)
摘要: 官方文档: This function returns a string result with the concatenated non-NULL values from a group. It returns NULL if there are no non-NULL values. The f 阅读全文
posted @ 2020-06-24 20:47 limalove 阅读(254) 评论(0) 推荐(0)