loading

摘要: 聚合函数group_concat(X,Y),其中X是要连接的字段,Y是连接时用的符号,可省略,默认为逗号。 此函数必须与GROUP BY配合使用。此题以dept_no作为分组,将每个分组中不同的emp_no用逗号连接起来(即可省略Y)。 SELECT dept_no,group_concat(emp 阅读全文
posted @ 2024-07-04 22:25 EaApple 阅读(27) 评论(0) 推荐(0)
摘要: 题目连接 select first_name from employees order by right(first_name,2); MySQL 中的 RIGHT() 和 LEFT() 函数是用于从字符串中提取子字符串的内置函数。 LEFT() 函数用于从字符串的左侧开始提取指定数量的字符。其基本 阅读全文
posted @ 2024-07-04 21:49 EaApple 阅读(64) 评论(0) 推荐(0)
摘要: (题目)[https://www.nowcoder.com/share/jump/4394623561720098946857] drop table if exists strings; CREATE TABLE strings( id int(5) NOT NULL PRIMARY KEY, s 阅读全文
posted @ 2024-07-04 21:24 EaApple 阅读(23) 评论(0) 推荐(0)