![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MYSQL基础
神秘用户z
这个作者很懒,什么都没留下…
展开
-
MYSQL基础
MySQL增删改查语句 select * from xxx; insert into xxx values(); update xxx set xx=xx where xxx=xxx and xxx=xxx; delete from xxx where xx=xxx and xxx=xxx or……; MySQL基本语句(增删改查,like语句) 查询: select原创 2017-06-29 07:56:33 · 197 阅读 · 0 评论 -
2017-6-29
distinct distinct只能返回它的目标字段,无法返回其他字段。所以我们往往用来返回不重复字段的条数 如:(count(distinct id)) 用法2: select distinct name from user;查询所有的姓名(重复的只显示一次) 用法3: select distinct name,id from user;查询出所有的姓名与id(只有同时重复的才原创 2017-06-30 08:22:44 · 162 阅读 · 0 评论