![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SQL
文章平均质量分 50
木良Duncan
这个作者很懒,什么都没留下…
展开
-
MySQL函数
Group_concat(): 聚合函数group_concat(X, Y),其中X是要连接的字段,Y是连接时用到的字符,可省略,默认为逗号。 此函数必须与Group by配合使用 select dept_no, group_concat(emp_no) as employees from dept_emp group by dept_no ............原创 2022-05-18 08:30:29 · 240 阅读 · 0 评论 -
MySQL中如何创建索引
添加索引: 1.添加主键: alter table tableName add primary key(columnName); 2.添加唯一索引 alter table tableName add unique indexName(columnName); 3.添加普通索引 alter table tableName add index indexName(columnName); 4.全文索引 alter table tableName add fulltext indexName(columnN原创 2022-05-02 14:54:14 · 1888 阅读 · 0 评论